Is there some url I can construct with a latitude,longitude pair that will lead me directly to a google maps page to visualize that location?
For example, the following pseudocode:
var lat = 43.23; var lng = 114.08; var url = 'http://google.com/maps/bylatlng?lat=' + lat + '&lng=' + lng'; print 'click here to see this location in google maps!: <a href="' + url + '">go</a>';
Something like that?
Thanks
You can get postal code by using Google map's API. You can get the postal code from the json data returned by the API. Provide the lat lng to LatLng constructor.
You should be able to do something like this:
http://maps.google.com/maps?q=24.197611,120.780512
Some more info on the query parameters available at this location
Here's another link to an SO thread
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With