Create Google Maps links based on coordinates
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¢er=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!
Related videos on Youtube
Staffan Estberg
Creative developer and filmmaker based in Bangkok.
Updated on April 15, 2022Comments
-
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 -
Any ideas? Not looking to embed but just to create external links that can be shared.
-
Ciasto piekarz almost 7 yearsexcept 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 over 6 yearsis it possible to add a zoom level ?
-
ScaisEdge over 6 years@StanSokolov yes should be possibile adding to the url eG. &zoom=13 or &z=9
-
Jed almost 6 yearsThanks 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 almost 6 yearsyou 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 about 4 years@Banzy this still works, just took this scrennshot of the url in the post: i.imgur.com/flQa6dm.png
-
ScaisEdge about 4 years@Cole128 jus add you zoomLevel and z eg: google.com/maps/place/49.46800006494457,17.11514008755796,10z
-
makeworld about 4 years@scaisEdge That link doesn't work for me, it doesn't actually bring me to the coordinates.
-
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 about 4 yearsI opened it with a right click. It works for you? It fails in both Chrome and Firefox for me.
-
ScaisEdge about 4 yearsYes .. i used firefox, opera, chrome and wok .. very well. both with right click of copying .. and pasting
-
ScaisEdge about 4 yearseventually 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 almost 3 years@tozlu Do you know how to?
-
tozlu almost 3 years@LoiNguyenHuynh There are multiple answers here which helped me a lot
-
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 😂