How to extract location information from Google maps mashup? - google-maps

There is a website that contains different placemarks embedded inside a Google maps mashup on its site. The placemark refers to a location that can be selected on the website.
Essentially every time the location is selected i can see a popup from the placemark showing a few attributes. When i view page source i could not find location information in lat/lon format.
In normal google maps browsing one can right click at a point to get Lat/Lon information but this functionality is disabled within the mashup.
Does anyone have an idea to overcome this limitation ? I have to scrape the name and location information of a few 100 placemarks from the website.

Related

Google maps embed API fallback coordinates

I have a website that contains a database of places, mostly stores and small businesses, and i want to add a google map for every business on the site. I have a name and coordinates for each business, but not all of them are listed on google maps. If i make a Google Maps Embed API map like this:
https://www.google.com/maps/embed/v1/place?key=APIKEY&q=Place name
I will get a marker on that place, but if that place is not found, is it possible to make it put a marker on the coordinates provided?
I know i can just use the coordinates without any name, but in case the place is listed on google maps, querying its name instead of coordinates will display details about the place
Yes you can still place a marker as long as you have the lat and long.
You can add your business to Google Map over here.

fusiontablecell object retrieve the value from kml via fusion table

currently I am work on the project by using polygons KML and fusion table
I have uploading the kml into fusion table and share it, by using the mao id, in my custom web page, they are display correct,
now I need add address search function in to custom page, my goal is display the kml polygon information and the search result information into one information window,
I could display the marker address info and I could by click to display the polygon info window, but they are separate and could not display in one inforwindow

Search a google map I have created and embedded into my website

I have a Google map I have created to highlight the location of several support groups by adding my own pins using my maps and embedding this into my website.
Is there a Google widget of any description to allows people to search my custom map and find their nearest support group (or nearest pin).
I have read through the Google maps stuff but cant seem to find anything that meets my requirements.
Any help appreciated.
The map has no clue about which markers or overlays you have put on it. Therefore there are no way you can do what you want using Google Maps directly. You can however do something else.
When you create your markers/overlays and place them on the map you can add them to an array. When you users then enters a location you can search through that array to find the markers that are closest to the location the user has entered. Google Maps API has a method for getting the distance between two latlngs, but you can also use an ordinary Haversine formula for calculating it.
Once you have found the closest markers it is not hard making sure they are the only ones that are shown on the map.

Embeded google street view

Is it possible to have a google map embeded street view panorama of a given address in your page?
All the codes I have came across work with coordination, I'm looking for "address", since if you just use coordination you will have to set pov and all that,
Google seems to do that itself, look at the panorama picture here:
http://maps.google.ca/maps/place?hl=en&sugexp=kjrmc&cp=10&gs_id=z&xhr=t&biw=1680&bih=874&gs_upl=&bav=on.2,or.r_gc.r_pw.,cf.osb&um=1&ie=UTF-8&q=toyota+calgary&fb=1&gl=ca&hq=toyota&hnear=0x537170039f843fd5:0x266d3bb1b652b63a,Calgary,+AB&cid=16440335169618939517&ei=VpqYTpPsLbCrsALi0LnqBA&sa=X&oi=local_result&ct=map-marker-link&resnum=1&sqi=2&ved=0CF8QrwswAA
Thanks
Yes, using the Google Maps Javascript API V3. Take a look here: http://code.google.com/apis/maps/documentation/javascript/services.html#StreetView
You can also embed Street View on your page by just using Google Maps.
Search for the address on Google Maps.
Go to the Street View for the location.
Click the link button in the upper-right hand corner above the map.
Click the 'Customize and preview embedded map' link.
A new page will open up with some customization opens and the code to embed the map/image on your page.
Yes you can. All you need is a google decoder who will decode your address. Another way is to directly pass your address as a part of the url to google.
When using decoder, you will get the result in the form of a latitude longitude object which you can use to reset/set your map's marker
There is no way to accurately set the heading automatically and no way to set the pitch and fov (field of view) - BUT if you figure these out manually you can create a URL that fetches a static image with those settings from Google
Take a look at this tutorial on the Street View Image API

Route thru points

How i can get kml file from Google Maps that contains route thru several points. Now i use this link http://maps.google.com/maps?f=d&hl=en&saddr=51.591016,-0.107382&daddr=51.359619,-0.147695&ie=UTF8&0&om=0&output=kml It work, but only for two points.
First, you should know that Google Maps and Google earth have different capabilities for displaying kml files. Google Earth has almost no limitations, you can author full mxd's to google earth with legends and everything, google maps, however, does not have nearly the same capability.
In google maps you are restricted to displaying 200 kml points on one page, this is because this application is server based and created using javascript, for performance purposes, you are limited to only 200 kml points per page. You might notice that the rest of your points are on different pages, unfortunatly you cannot view them all at the same time. One thing that you can do, Is serve up a url to your kml file (you can do this easily if you have an ftp account or with google my pages), then just enter the url into the search box, presto! all of your points will show up, only, you will not be able to route directions or edit any attributes, you can merely save to my maps and share the display of the points (again people will not be able to get directions from the points)
Serving up your kml to a url address is good practise, it will save you time, also you can use your own symbology, if you enter the url address in the upload area (as opposed to the search box) you will be able to keep your symbology, edit the attributes and get directions and all of that other fun stuff. You will however have the limitation of only being able to display 200 points per page.
Thus if you need to be able to have the user search for directions from your points, you can only have 200 points at a time :(
enter the url in the search box and all of your points will appear......but no directions..
Hope this helps.
For Reference:
http://econym.org.uk/gmap/kml.htm
http://code.google.com/apis/kml/documentation/kmlelementsinmaps.html