Google-maps – How to put the marker with google maps query string

google mapsgoogle-maps-markers

I can share a location with google maps providing the lat and lon parameters. For example;

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

With the "ll" parameter i can center the map there. Is there a way to put the marker to the position specified?

Best Answer

If you use 'q' on its own 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'll also get an unwanted additional red marker for a nearby point of interest, which doesn't look good and can be confusing for the viewer.

Best option is to use 'q=loc:' as in:

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

This will only display a single red marker for the coordinates provided and centres the map on that point.