How to Link to Google Maps with a Particular Longitude and Latitude

How do I link to Google Maps with a particular longitude and latitude?

This schema has changed again (23rd October 2018). See Kushagr's answer for the latest.

This for a map with the marker (via aaronm's comment):

https://www.google.com/maps/?q=-15.623037,18.388672

For an older example (no marker on this one):

https://www.google.com/maps/preview/@-15.623037,18.388672,8z

The oldest format:


http://maps.google.com/maps?ll=-15.623037,18.388672&spn=65.61535,79.013672

Create Google Maps links based on coordinates

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

Get google map link with latitude/longitude

I've tried doing the request you need using an iframe to show the result for latitude, longitude, and zoom needed:

<iframe 
width="300"
height="170"
frameborder="0"
scrolling="no"
marginheight="0"
marginwidth="0"
src="https://maps.google.com/maps?q='+YOUR_LAT+','+YOUR_LON+'&hl=es&z=14&output=embed"
>
</iframe>
<br />
<small>
<a
href="https://maps.google.com/maps?q='+data.lat+','+data.lon+'&hl=es;z=14&output=embed"
style="color:#0000FF;text-align:left"
target="_blank"
>
See map bigger
</a>
</small>

Url to a google maps page to show a pin given a latitude / longitude?

You should be able to do something like this:

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

Some more info on the query parameters available at this location

Here's another link to an SO thread

What parameters should I use in a Google Maps URL to go to a lat-lon?

In May 2017 Google announced the Google Maps URLs API that allows to construct universal cross-platform links. Now you can open Google maps on web, Android or iOS using the same URL string in form:

https://www.google.com/maps/search/?api=1¶meters

There are several modes that you can use: search, directions, show map and show street view.

So you can use something like

https://www.google.com/maps/search/?api=1&query=58.698017,-152.522067

to open map and place marker on some lat and lng.

For further details please refer to:

https://developers.google.com/maps/documentation/urls/guide

Create Google Maps links based on coordinates - bug pin position

The latitude and longitude after the @ sign is the center of the map, not the location of the place you searched for.

The coordinates of that place are in the data portion of the URL:

data=!3m1!4b1!4m5!3m4!1s0x470e7de678b98f57:0x775f2cf0460db4c2!8m2!3d50.3404166!4d15.9355428

at the very end: !3d50.3404166!4d15.9355428

link

related:

  • How do I get the address and coordinates given this google place url?
  • Finding the lat/long coordinates in a Google Maps URL

Use a URL to link to a Google map with a marker on it

In May 2017 Google launched the official Google Maps URLs documentation. The Google Maps URLs introduces universal cross-platform syntax that you can use in your applications.

Have a look at the following document:

https://developers.google.com/maps/documentation/urls/guide

You can use URLs in search, directions, map and street view modes.

For example, to show the marker at specified position you can use the following URL:

https://www.google.com/maps/search/?api=1&query=36.26577,-92.54324

For further details please read aforementioned documentation.

You can also file feature requests for this API in Google issue tracker.



Related Topics



Leave a reply



Submit