Create Google Maps links based on coordinates

Google MapsHyperlinkCoordinatesShare

Google Maps Problem Overview


How can I create Google Maps links based on coordinates. Their new basic share urls contain a lot of parameters, for example -

https://www.google.com/maps/place/Vetlanda,+Sweden/@57.4217311,15.0849255,13z/data=!3m1!4b1!4m2!3m1!1s0x465758d912d321b5:0x55675191e550be84?hl=en

Any ideas? Not looking to embed but just to create external links that can be shared.

Google Maps Solutions


Solution 1 - Google Maps

Why not http://www.google.com/maps/place/lat,lng I think this is the simplest way

http://www.google.com/maps/place/49.46800006494457,17.11514008755796

Solution 2 - Google Maps

According to another answer, you can use following url

http://maps.google.com/maps?q=24.197611,120.780512

to show a pin.

Solution 3 - Google Maps

The currently accepted answer ends up adding an additional history entry in browsers at the moment as Google Maps redirects to a different URL format.

To avoid that extra entry in the browser's history, use the official Maps API url:

https://www.google.com/maps/search/?api=1&query=latitude,longitude

This will display a marker at the latitude, longitude location as well.

If you only want to center the map (and not display a marker), use the map action:

https://www.google.com/maps/@?api=1&map_action=map&center=latitude,longitude

Solution 4 - Google Maps

  • Working in 2022
  • No sidebar
  • Url doesnt change
  • Zoom included

Syntax:

https://www.google.com/maps/@{lat},{long},{zoom}z

Example:

https://www.google.com/maps/@51.123,10.123,15z

Solution 5 - Google Maps

The simple and best way is to use as follows:-

https://maps.google.com/?q=LATITUDE-VALUE,LONGITUDE-VALUE

Hope it helps. Thank you!

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionStaffan EstbergView Question on Stackoverflow
Solution 1 - Google MapsScaisEdgeView Answer on Stackoverflow
Solution 2 - Google MapsMichele MilidoniView Answer on Stackoverflow
Solution 3 - Google MapsMatsLindhView Answer on Stackoverflow
Solution 4 - Google MapsBobbyTablesView Answer on Stackoverflow
Solution 5 - Google MapsArun Kumar NView Answer on Stackoverflow