Reputation: 7167
i'd like to extract latitude and longitude values from google map links.
let's say you have the following link (this is the link that you'd get on http://maps.google.com link menu)
there are a couple of lat/lon values here (sll, sspn) but none of them seems right. In this case the first pair links to Mongolia the second goes to Oklahoma.
the correct lat/lon would be around 35.6894875, 139.6917064.
my question is that how you can get this values from a link?
I found this site http://mapki.com/wiki/Google_Map_Parameters but i could not really figure out the solution.
thanks and best, Viktor
Upvotes: 1
Views: 1751
Reputation: 70085
The value of ll in your URL should be the latitude and longitude of the center of your map. Unfortunately, your URL does not have an ll parameter. When I go to Google Maps, map a location, and click the link button to get a URL to share, it invariably has the ll parameter. I'm not sure how you generated the above URL, but that might have a clue to the solution.
Upvotes: 1