How to place marker using google maps query string

I can share the location with google maps providing lat and lon options. For instance:

http://maps.google.com/maps?ll=40.01696,32.33076&z=17

With the parameter "ll" I can center the map. Is there a way to place the marker at the indicated position?

+6
source share
4 answers

If you use "q" yourself, as in:

http://maps.google.com/maps?q=40.01696,32.33076&z=17

then you will get a green pointer at the point of the coordinates provided, but you will also get an unwanted extra red marker for the nearest point of interest, which does not look very good and can confuse the viewer.

The best option is to use "q = loc:", as in:

http://maps.google.com/maps?q=loc:40.01696,32.33076&z=17

This displays only one red marker for the coordinates provided and centers the map on that point.

+8
source

Just use "q". A marker will be placed here.

https://maps.google.com/maps?q=40.01696,32.33076&

+1
source

There is a saddr parameter.

This actually meant placing a marker to start a route, but you can use it to place a marker and share a location (including a marker).

But, of course, you can also save an open card and share it.

0
source

Take a look at the following:

[ https://developers.google.com/maps/documentation/staticmaps/#Markers†[1]

I was just looking to do the same thing, something like:

& markers = color: 0xd94bf9% 7Clabel: A% 7C25.250327,55.3332642

So, I have the color, text, and label layout separated by% 7C for the channel separators detailed in the API

0
source

Source: https://habr.com/ru/post/908924/


All Articles