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
Related
I want to link to my google places listing using the address.
This is being done automatically as I have hundreds of addresses.
The format shown in the share on google maps is https://www.google.com/maps/place/name+of+place/#lat,long,zoom however the lat/long is not always selecting the correct places listing.
In some cases the location selected is several states away which makes no sense, though the map is always zoomed to the correct coordinates and the correct listing is right there on the map.
Finally found a combination that seems to work:
https://www.google.com/maps/search/name+of+place,+address+of+place/#lat,long,zoom
Apparently search works if you're very, very specific.
I've created a map that has the ability to toggle data (markers) and added a search box, but I want to be able to search through my markers like in Google's My Maps, but everything that I've searched for doesn't have this feature and I've clicked just about every link there is on the first two pages and this is the closest I've found, but I'm trying to find (b) and the answer to (b) in this situation is to find any entrees within a certain radius.
This is the search feature that I'm trying to add: Example of Google's My Maps : If I search pancakes, the top results that I get are places that are on the map in which I've mentioned pancakes (instead of any place that serves pancakes).
Everything that I've done so far has been in html/javascript, so if it is possible, please try and stick to those languages.
I'm using Google's Maps API instead of My Maps because I wanted to do some extra toggling with the data that didn't seem possible with My Maps, eg make lower rated restaurants have lower opacity.
Thanks!
Forgive me if this has already been asked but searching on 'Google Maps Views' brings up rather a lot of irrelevant hits.
Is there an API to display the nearest (say) 5 photos to a particular long/lat location from the photos available on Google Maps Views? I don't particularly need them on a map, just to embed thumbnails of the photos and link to the originals.
eg I have a page for Callanish stone circle. Could I embed images from Views based on a long/lat query?
Here's what is on Views for that location:
https://www.google.com/maps/views/explore?hl=en&gl=gb&vm=1&ll=54.596562,-3.104517&bd=54.586641,-3.121855,54.606481,-3.087179&z=15&pv=2
I read that Views is what is supposed to be taking over from Panoramio. I know Panoramio had an API but that's being shut down.
If this is possible, does anyone have an example of something similar? Showing photos on a map would be OK if that's the only way to do it.
Many thanks
Andy
http://www.megalithic.co.uk/article.php?sid=42
The Google Maps API can do it and the imagery carousel at the bottom of Google Maps website is a good example of it.
Nearest photos
You can retrieve the nearest photos to a location using the Places Photo feature, which is part of the Places library. As you want multiple photos, you need to use Place Details requests - function getDetails(). It will return up to ten PlacePhoto objects.
You probably want to submit a small height/width since you create thumbnails. And send another request with a larger height/width when a thumbnail is clicked.
Nearest Street View panorama
If, by chance, a road close to Callanish stone circle has been photographed by Street View, you can add this imagery as well.
Requests for Street View panoramas include a radius parameter. The callback function returns the nearest imagery within the requested radius. See this example. Thereby, you can retrieve one panorama by passing a very large radius.
I was searching the web for the past two days and I wasn't successful in finding what I want.I want to add my own place (for example my home) to the google maps and then get the coordinates of that place in order to place it in my google maps code in my website.
the only way google is showing me to do so is to add a job for my google coordinates account and then add my custom location(and of course I should pay for it).But this is not a job,I just want my place's coordinates to use in my google maps code!
ps:I've even seen people add their own location with full details of their place in the google maps and I'm pretty sure they didn't pay a penny for it(and everyone in the world can see their place!!!)
So here's the question:How can I do this without paying anything?
Go to the google map on web browser and go to the place what you want by zoom and move and at click you would see the coordnates that you may use in google map code.
No need to add you own place.
I've embedded google maps several times, only doing basic stuff though.
Now I need to overlay districts over a city. I worked hard to get, parse and adjust all the coordinates for all districts and I don't want others to copy my coordinates.
Can I display the overlays, but prevent users from reading the KML coordinates ? Is there a way to embed them other than having the path visible for everyone in the javascript api block ?
Try using a FusionTablesLayer. You can import your KML into a FusionTable, and prevent it from being downloaded, but display it on a map. People will be able to look at your coordinates, but it will be difficult (but probably not impossible) to grab them.