Solved

google maps - drop pins instead of directions

Posted on 2014-12-05
6
232 Views
Last Modified: 2014-12-07
The following strings gives me a map with directions for 2 addresses.  I can do this with more than 2 addresses.

https://www.google.com/maps/dir/123+Main,+Kansas+City,+MO+64106/123+Oak+St,+Kansas+City,+MO+64106

The Question
Is there a way to do this with just 2 pins on the map (or more if more addresses)  showing the two addresses at each pin?

Why I ask
I have a customer who wants pins and not a directions.
I'm using VBA to build a string from a table with a push of a button  /  Open IE with the string

Thanks in advance for any help.
LJG
0
Comment
Question by:LJG
6 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 40483518
3 Addresses would look something like his:

https://www.google.com/maps/dir/123+Main,+Kansas+City,+MO+64106/123+Oak+St,+Kansas+City,+MO+64106/816+E+5th St,+Kansas+City, +MO+ 64106

So that may help you a bit...


...I am not sure thee is an "easy" way to get rid of the driving directions ans just show each location as a "Pin"
(you may have to do some programming within the Google Maps API?)
https://developers.google.com/maps/

You can search here or on the web for links on how to do this. (ad "Pins" for the locations)
The examples I saw were for Excel and were not exactly "simple" to implement.

But lets see if any other experts can provide more insight...

JeffCoachman
0
 
LVL 12

Accepted Solution

by:
pdebaets earned 450 total points
ID: 40483587
Please see our free Multi-Location Mapper utility for Access here: http://peterssoftware.com/mlm.htm

It uses the Google Maps API to place push pins on a Google map in a browser.
0
 
LVL 2

Author Comment

by:LJG
ID: 40483852
pdebaets

I've downloaded the 2 databases and the ReadMe file in mlm.zip.  I'm sorry, but I'm missing something.

Question #1
In step #4-A - you say "A. Copy 'mlm2000.mdb' and the 'htm' folder"   I didn't see an HTM folder in the archive.

Question #2
If I run   ?fMLMMapIt("qryAddresses") in the Immediate Window of mlm2000demo.mdb

Error #1
               I get the error --> The Multi-Location Mapper library could not be found

              If I skip the code at Marker = 25
                  If Dir(strFolder & "mlm*.*") = "" Then
                         MsgBox "The Multi-Location Mapper library could not be found", , "Multi-Location Mapper"
                        GoTo Exit_Section
                  End If

Error #2  Marker = 29
               I get the error --> 1st it says it cant open the file mlm2000.mdb  (after about a minute it opens)
                              Then -->. Error in xg_concatenateFiles: the file D:\Access10\Develop\aa_GoogleMaps\htm\MapPoints1.txt does not exist

Any ideas???
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 12

Expert Comment

by:pdebaets
ID: 40483999
The mlm.zip archive contents should look like this (see image). The htm folder should be in there. Please try downloading again and let me know if you don't see it.

Also, make sure you run these programs from a trusted location.
Capture.PNG
0
 
LVL 26

Assisted Solution

by:Nick67
Nick67 earned 50 total points
ID: 40484058
Do you want/need the whole nine yards, or will a Google static map do?
Like This

Edit zoom=14 to home in further
Markers can be given colors, labels & sizes as well
Sample attached
map1.htm
0
 
LVL 2

Author Closing Comment

by:LJG
ID: 40485415
pdebaets - Thanks for a great solution (Sorry when I opened the zip with Directory Opus I didn't see the folder)  

 Nick67 - Your thoughts gave me some additional ideas for the Job.    

Thanks LJG
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with spreadsheets can be a daunting task, especially when having to deal with large amounts of data. All you see are rows and rows of numbers and soon your eyes begin to glaze over. Take advantage of the tools in Google Sheets to create prof…
If your app took Google’s lash recently, here are the 5 most likely reasons.
By using UNIQUE function in Google Sheets, you can get around removing duplicates like in Microsoft Excel.
This Micro Tutorial will demonstrate Google Calendar to monitor updates with top sites, such as Facebook, Google, Twitter, etc. with Marketing News. Each update of Google Calendar can be monitored, correlate dips and spikes in your website traffic, …

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question