97

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.

Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
Staffan Estberg
  • 6,795
  • 16
  • 71
  • 107

5 Answers5

253

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

ScaisEdge
  • 131,976
  • 10
  • 91
  • 107
  • 3
    is it possible to add a zoom level ? – Stan Sokolov Oct 02 '17 at 17:36
  • 5
    @StanSokolov yes should be possibile adding to the url eG. &zoom=13 or &z=9 – ScaisEdge Oct 02 '17 at 18:34
  • 1
    Thanks a lot for your answer @scaisEdge. I'm looking for a solution if there's anyway for me to use the same URL you provided and open a native apps such as google MAP or IOS maps hijacking the locations for "Get Directions" purposes. Is there a quick way to do this you can suggest? – Jed Aug 01 '18 at 07:27
  • 1
    you can easly .. use the lat, lng parameter accessing as GET parameter and the eval server side the content .. try inspect the url content server side – ScaisEdge Aug 01 '18 at 10:25
  • 1
    @Cole128 jus add you zoomLevel and z eg: http://www.google.com/maps/place/49.46800006494457,17.11514008755796,10z – ScaisEdge Apr 14 '20 at 15:19
  • 1
    @scaisEdge That link doesn't work for me, it doesn't actually bring me to the coordinates. – makeworld Apr 14 '20 at 15:22
  • 1
    @Cole128 i just copy the link and work .. be sure you have proper value lat, lng,zoomz eg: 45.00, 10.00, 13z – ScaisEdge Apr 14 '20 at 15:23
  • 1
    I opened it with a right click. It works for you? It fails in both Chrome and Firefox for me. – makeworld Apr 14 '20 at 15:29
  • 1
    Yes .. i used firefox, opera, chrome and wok .. very well. both with right click of copying .. and pasting – ScaisEdge Apr 14 '20 at 15:31
  • 2
    eventually try use this sintax based on place (move the map to the nearest place) with zoom www.google.com/maps/place/45°28'04.8"N+10°06'54.5"E/@45.468,10.1129502,10z – ScaisEdge Apr 14 '20 at 15:35
33

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
MatsLindh
  • 49,529
  • 4
  • 53
  • 84
31

According to another answer, you can use following url

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

to show a pin.

Community
  • 1
  • 1
Michele
  • 653
  • 8
  • 13
  • 2
    except it shows side panel I just wanted to embed the map in an inline frame or div ! would it be possible to open map but with side panel collapsed. – Ciasto piekarz Jul 31 '17 at 03:10
  • 1
    @Banzy this still works, just took this scrennshot of the url in the post: https://i.imgur.com/flQa6dm.png – BobbyTables Mar 03 '20 at 07:48
17
  • 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

BobbyTables
  • 4,481
  • 1
  • 31
  • 39
6

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

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

Hope it helps. Thank you!

Arun Kumar N
  • 1,611
  • 1
  • 20
  • 25