Link to home
Create AccountLog in
Avatar of Rob4077
Rob4077Flag 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:

https://maps.google.com/maps?f=q&hl=en&t=h&q=loc:41.08853,121.916293222341

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?
Avatar of Molnár István
Molnár István
Flag of Romania image

Avatar of Rob4077

ASKER

Thanks for that. Does this mean I send an email with the map built into the email instead of a hyperlink?
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 :
http://maps.google.com/help/maps/getmaps/plot-one.html

if you want to embed the map on your site, you should use the google api.
Avatar of Rob4077

ASKER

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.  

https://maps.google.com/maps/ms?msid=210015640852323135711.0004c3daf9b6df1c57016&msa=0&ll=-32.077338,115.91722&spn=0.018364,0.042272
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
Avatar of Rob4077

ASKER

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>
ASKER CERTIFIED SOLUTION
Avatar of Molnár István
Molnár István
Flag of Romania image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Rob4077

ASKER

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.