Avatar of Rob4077
Flag for Australia asked on

Is there a way of creating a hyperlink to a Google Maps page with more than one pin on it?

I have a need to send an email with a hyperlink to a Google Maps location similar to the following:


However I would like to show multiple pins on the same map. Is there any way I can create a hyperlink that generates the map and includes multiple pins for different nearby locations? Or do I need to get hold of the API, pay Google License fees, etc?
GIS/GPS Programming

Avatar of undefined
Last Comment

8/22/2022 - Mon
Molnár István


Thanks for that. Does this mean I send an email with the map built into the email instead of a hyperlink?
Molnár István

when you create a map with the first method, you get a link to that map that you can use on your website/blog:
see step 4 :

if you want to embed the map on your site, you should use the google api.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy

Ok I tried the first option and did a mockup of a hyperlink which is as follows. The following shows two pins which is a great start. What I need to do is figure out how to creat such a hyperlink when all I have are the coordinates.

Looking at the hyperlink I can only decipher one set of coordinates, being -32.077338,115.91722 but I don't know where the second set of coordinates are stored, or how the location names are stored and interpreted.

To complete the picture I am reading coordinates that have been fed into my database and I just want to generate the code to send one email with a link showing the last say 5 or 10 locations and I need to do it programatically using MS Access so I am looking for a way to create a hyperlink like the following without having to manually put things on a web site and then copy/pasting the link.  

Molnár István

when you create a map, you can import the coordinates from a kml/kmz file. create a kml/kmz file and import that in google maps . i think the button is called "import"

after importing you should see the markers and you can copy the link.

edit: you can create a kmz file:http://www.youtube.com/watch?v=xXSs1m31M7c
i have found: Export Microsoft Access Records To KML-http://freegeographytools.com/2008/export-microsoft-access-records-to-kml

Thanks for that. I managed to get the single layer working and should be able to get the multi layer version working without too much trouble. Great as it is, it's not quite what I am after but it's hopefully got me on the path.

The following code provides a link to a web page with a single pin. I will give up on the idea of including multiple pins but would still like to include a single pin and an embedded map in the email. However if I change the coordinates in the code below (i.e. I change: ll=-32.234221,115.832763 to somewhere else), it centres the map in the right place but the pin is not moved. Is there any easy way to interpret from the code below where the pin is placed or is this Google's way of preventing me from doing it?

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps/ms?msid=210015640852323135711.0004c3f675fad223663ad&msa=0&ie=UTF8&t=h&ll=-32.234221,115.832763&spn=0.004583,0.010568&output=embed"></iframe><br /><small>View <a href="https://maps.google.com/maps/ms?msid=210015640852323135711.0004c3f675fad223663ad&msa=0&ie=UTF8&t=h&ll=-32.234221,115.832763&spn=0.004583,0.010568&source=embed" style="color:#0000FF;text-align:left">My Home</a> in a larger map</small>
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Molnár István

View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.

Thanks for the help. The last link you gave me has some great info. It has almost what I need in the +to: prarameter that enables me to create multiple pins BUT it shows a tracking path between them that I don't need. I was just hoping I could get it to show a number of pins on the one page with one hyperlink. Looks like it's just not possible.

Thanks for providing the answer to my question, even though its not the answer I was hoping for.