Google Map to show markers for multiple location
Heres what you want -- basically the url string can hold more than one marker / location details. I've used the static version before on a project but heres the functional map version example I'd start with:
url syntax:
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|color:red|label:C|40.718217,-73.998284&sensor=false
(note: if will have heavy use you should obtain a key and add this to the end of the URL:
&key=YOUR_MAPS_API_KEY
)
Anand Jha
Hello guys, I am a Senior Member Technical Staff at Oracle , Bangalore
Updated on June 07, 2022Comments
-
Anand Jha almost 2 years
What I am trying to do is using Google map URL
(https://maps.google.com/maps)
,I want to have markers for multiple location also I don't want to use Google Map API.I am only able to get a marker for single location using
https://maps.google.com/maps?q=22.96783,88.74398
is there something like
https://maps.google.com/maps?q=22.96783,88.74398&22.99783,88.78398
to get markers for multiple location (though it is not working in this format)Any reference or help will be appreciated, Thanks
-
Anand Jha over 10 yearsThanks tamak for your response, I am not looking for static map,my requirement is of Google map with multiple marker. can It be possible without using Google Map API?
-
Artjom B. almost 10 yearsHow do you combine multiple searched locations into a single query? Is that possible? Can you provide code?