Solved

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

Posted on 2014-12-18
7
110 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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 46

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

815 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