Open Google Maps in New Browser Tab with Location (Latitude & Longitude) Tagged/Marked

Open Google Maps in New Browser Tab with Location (Latitude & Longitude) Tagged/Marked

     This is one of the main requirement in most of the location based applications and as well as in static page websites where one needs to open Google Maps in new tab (using HTML link) with the given location tagged. The below URL can be used to acheive the same and the URL parameters are explained below.

http://maps.google.com/maps?z=12&t=m&q=loc:LATITUDE+LONGITUDE

Example:

https://www.google.com/maps?z=12&t=m&q=loc:76.8+-88.4
z - Zoom Level (1-20)
t - Map Type ("m" map, "k" satellite, "h" hybrid, "p" terrain, "e" GoogleEarth)
q:loc - Search Query, Latitude and Longitude seperated by + symbol
LATITUDE  : -90  to +90
LONGITUDE : -180 to +180

[ YOU MAY ALSO LIKE ]

Leave a Reply