Solved

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

Posted on 2014-12-18
7
113 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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 47

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 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