URL for multiple markers in Google Maps

embed google map with multiple markers
google maps url parameters
how to add multiple markers on google maps javascript dynamically
google maps link multiple markers
google maps url parameters latitude/longitude
how to display multiple locations on google maps
google maps api multiple markers
how to place markers on google maps

In a desktop Qt application, I have some GPS coordinates that I'd like to show on a map. My plan is to construct an URL with the coordinates and let a web browser and Google maps or a similar service do the heavy lifting.

After reading some apparently reverse-engineered documentation at

mapki.com slash wiki slash Google_Map_Parameters

I can make it work for a single point, but what's the URL syntax for multiple points?

My best shot so far is to build a string such as this:

http://maps.google.com/?ie=UTF8&q=My+First+Point@59.591,17.82&q=My+Second+Point@59.592,17.82

but that will only show "My Second Point". Is there a better description of the syntax somewhere?


Replacing q= with markers= did not work and the "static map" suggestion below only complained about an incorrect API key.

for google maps static there is this URL:

http://maps.google.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap
&markers=color:blue|label:S|40.702147,-74.015794&markers=color:green|label:G|40.711614,-74.012318
&markers=color:red|label:C|40.718217,-73.998284&sensor=false&key=MAPS_API_KEY

Detailed version:

http://maps.google.com/maps/api/staticmap?
center=Brooklyn+Bridge,New+York,NY
&zoom=14
&size=512x512
&maptype=roadmap
&markers=color:blue|label:S|40.702147,-74.015794
&markers=color:green|label:G|40.711614,-74.012318
&markers=color:red|label:C|40.718217,-73.998284
&sensor=false
&key=MAPS_API_KEY

i am not sure if this syntax is also good for standard maps

Google Maps - Multiple Markers via URL only, 3.1 Graphical Method; 3.2 Pre-Step: Google Maps Creator; 3.3 Adding multiple markers; 3.4 Displaying pinpoints on Google Map; 3.5 Embed� Or, if you require dynamic maps, you could write your own public web page that uses Google Maps API and accepts a long list of parameters. Use your own web page in exactly the same way that you were intending to use maps.google.com web page, except that you get to design what you want the parameters to look like. Perhaps something like this.

http://staticmapmaker.com/ - very nice web tool for generating static map urls.

List of currently supported map services: - Google - Bing - Yandex - HERE - Mapbox - MapQuest - CartoDB

p.s. I know this is an old question, but many still google for it.

How To Add Multiple Markers on Google Maps • NearPlace.com, The Maps Static API defines map images using the following URL parameters: Multiple markers may be placed within the same markers parameter as long as� If you need to display multiple markers you need to add multiple markers you just need to add the lat/long of the additional markers to the URL, as listed in the google maps documentation. For example, this link below will give you 4 markers in a map (you'll need to add your developer key if you want to use in your app).

Throwing parameters at maps.google.com only gets you one point.

As dusoft says, you could use Google Static maps.

Or, if you require dynamic maps, you could write your own public web page that uses Google Maps API and accepts a long list of parameters. Use your own web page in exactly the same way that you were intending to use maps.google.com web page, except that you get to design what you want the parameters to look like.

Perhaps something like this.

Developer Guide | Maps Static API, Maps URLs provide a universal URL scheme to launch Google Maps from any platform. Display a map — launch Google Maps with no markers or directions: Multiple waypoints can be specified by using the pipe character ( | ) to separate � If Google Maps app for Android is installed and active, the URL launches Google Maps in the Maps app and performs the requested action. If the Google Maps app is not installed or is disabled, the URL launches Google Maps in a browser and performs the requested action. On an iOS device:

Several parameters (such as the markers and path parameters) take multiple locations. In those cases, the locations are separated by the pipe (|) character.

https://maps.googleapis.com/maps/api/staticmap?center=boca+raton,+fl+|+deerfied,+FL&zoom=12&scale=false&size=600x300&maptype=roadmap&sensor=false&key=API_KEY&format=png&visual_refresh=true&markers=size:mid%7Ccolor:red%7Cboca+raton,+fl+|+deerfied,+FL" alt="Google Map of boca raton, fl | deerfied, FL

Get Started | Maps URLs, I would like to show multiple places at Google Maps. KML files does not suit me. Is it possible to pass Google Maps a set of points in URL parameters? share. Introduction. A marker identifies a location on a map. By default, a marker uses a standard image. Markers can display custom images, in which case they are usually referred to as "icons."

How to show multiple points at Google Maps?, Map should display multiple locations in the form of markers. The second script tag loads the API from the URL which contains your API key. Introduction. The Maps Static API returns an image (either GIF, PNG or JPEG) in response to an HTTP request via a URL. For each request, you can specify the location of the map, the size of the image, the zoom level, the type of map, and the placement of optional markers at locations on the map.

Integrating Google Maps API for Multiple Locations, Note that the map links are all URL encoded, which formats spaces Similar to the Maps Static API, you'll be able to add multiple markers to� I'm trying to put multiple markers on Google Maps but making them each refers to an URL. I put all the markers in a loop but only the last one is executed. I want all of them to work. Here is my co

How to add maps to your website or app, Marker icon config object. url: "https://maps.google.com/mapfiles/ms/micons/blue. png",. size: new google.maps.Size(markerWidth, markerHeight),. origin: new� I imported Google Sheet data into Google My Maps to mark locations (in this case, different universities attended by different students). Several different students attend the same university, so multiple markers are placed on the same spot.

Comments
  • cooool, thanks!! also, for others browsing, omitting the key will just use an anonymous API key, which is okay for limited usage.
  • Note: Looks like there is a limit on the total number of markers, which is 25.