Solved

How to get distance from one location to another from google maps

Posted on 2014-12-18
7
106 Views
Last Modified: 2015-01-16
Hello,

 I would like to have distance in miles between several addresses.  As shown in the sample excel file, I would like to enter a location in a spreadsheet and distance from the previous location is automatically calculated .  So that I can calculate the total distance until returned to original location.  

 Thanks again,

 Mareeka
sample.xlsx
0
Comment
Question by:mareeka
7 Comments
 
LVL 17

Expert Comment

by:vb_elmar
ID: 40507056
Can you provide it as an "old" XLS version?
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 40507060
there is no VB version of the google maps API...
 its done in javascript
so your going to have to have to use javascript functions to do this


one way would be to read the cells off the excel sheet  in vb and use javascript to
enter those as start/end points into the API  paste the results back to the excel sheet, then do a sum

https://developers.google.com/maps/documentation/javascript/tutorial
0
 

Author Comment

by:mareeka
ID: 40507111
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 17

Accepted Solution

by:
vb_elmar earned 500 total points
ID: 40508469
Here is a sample.
8.xls
0
 
LVL 17

Expert Comment

by:vb_elmar
ID: 40509654
Here is another sample. It contains a route calculation for
Chicago, Greensboro, High Point and Seattle
sam3.xls
0
 
LVL 45

Expert Comment

by:Martin Liss
ID: 40553080
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now