Create Google Maps links based on coordinates

119,109

Solution 1

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

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

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

  • 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

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

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

Hope it helps. Thank you!

Share:
119,109

Related videos on Youtube

Staffan Estberg
Author by

Staffan Estberg

Creative developer and filmmaker based in Bangkok.

Updated on April 15, 2022

Comments

  • Staffan Estberg
    Staffan Estberg about 2 years

    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.

  • Ciasto piekarz
    Ciasto piekarz almost 7 years
    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.
  • Stan Sokolov
    Stan Sokolov over 6 years
    is it possible to add a zoom level ?
  • ScaisEdge
    ScaisEdge over 6 years
    @StanSokolov yes should be possibile adding to the url eG. &zoom=13 or &z=9
  • Jed
    Jed almost 6 years
    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?
  • ScaisEdge
    ScaisEdge almost 6 years
    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
  • BobbyTables
    BobbyTables about 4 years
    @Banzy this still works, just took this scrennshot of the url in the post: i.imgur.com/flQa6dm.png
  • ScaisEdge
    ScaisEdge about 4 years
  • makeworld
    makeworld about 4 years
    @scaisEdge That link doesn't work for me, it doesn't actually bring me to the coordinates.
  • ScaisEdge
    ScaisEdge about 4 years
    @Cole128 i just copy the link and work .. be sure you have proper value lat, lng,zoomz eg: 45.00, 10.00, 13z
  • makeworld
    makeworld about 4 years
    I opened it with a right click. It works for you? It fails in both Chrome and Firefox for me.
  • ScaisEdge
    ScaisEdge about 4 years
    Yes .. i used firefox, opera, chrome and wok .. very well. both with right click of copying .. and pasting
  • ScaisEdge
    ScaisEdge about 4 years
    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
  • Loi Nguyen Huynh
    Loi Nguyen Huynh almost 3 years
    @tozlu Do you know how to?
  • tozlu
    tozlu almost 3 years
    @LoiNguyenHuynh There are multiple answers here which helped me a lot
  • Loi Nguyen Huynh
    Loi Nguyen Huynh almost 3 years
    @tozlu thanks, it might help someone in the future, I'm already done with the project, about to graduate 😂