Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Url to a google maps page to show a pin given a latitude / longitude? [duplicate]

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

like image 366
user291701 Avatar asked Apr 27 '11 16:04

user291701


People also ask

Can we find pincode from latitude and longitude?

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.


1 Answers

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

like image 114
dawebber Avatar answered Oct 13 '22 04:10

dawebber