Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I link to Google Maps with a particular longitude and latitude?

I have a small application that gives the current location: longitude and latitude. Now I have to browse to google maps with the longitude and latitude. Please suggest how I can do this.

like image 766
Deepika Avatar asked Nov 26 '09 05:11

Deepika


People also ask

How do I hyperlink an address in Google Maps?

Go to maps.google.com on the web. Type your organization's address into the search box, and then hit [Enter]. Google Maps will display a pin on a map indicating the location. Select the sprocket in the lower right corner, then choose Share or embed map (Figure A).


1 Answers

The best way is to use q parameter so that it displays the map with the point marked. eg.:

https://maps.google.com/?q=<lat>,<lng> 
like image 166
Yilmaz Guleryuz Avatar answered Sep 22 '22 13:09

Yilmaz Guleryuz