MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




Calculate driving distance matrix in Excel

This is a discussion on Calculate driving distance matrix in Excel within the MapPoint Desktop Discussion forums, part of the Map Forums category; I am new to Mappoint. I need to access Mappoint from Excel, calculate a large driving distance matrix (50 x ...


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-21-2007
Junior Member
White Belt
 
Join Date: Jul 2007
Posts: 4
Calculate driving distance matrix in Excel

I am new to Mappoint. I need to access Mappoint from Excel, calculate a large driving distance matrix (50 x 200) from stores to customers using lat/longs stored in the Excel program and end up with the distance matrix (in driving miles) in Excel. Preferably without the user even knowing about or seeing mappoint.
Is this doable in mappoint? How do I go about it if it is?
THanks!
DaveOKC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-21-2007
Mattys Consulting's Avatar
Senior Member
Red Belt
 
Join Date: Dec 2002
Posts: 670
Re: Calculate driving distance matrix in Excel

Hi Dave,

Mile-Charter might be a viable option for you ...
MileCharter: Create Mileage Charts with Microsoft® MapPoint®
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-22-2007
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,439
Blog Entries: 40
Re: Calculate driving distance matrix in Excel

Yes it would do what you want - except it runs from within MapPoint rather than Excel.

Use the Data Import Wizard in MapPoint to load your data into MapPoint. Load the source locs as one pushpin set, load the destination locs as a different pushpin set. Then run MileCharter, and it will create the matrix in Excel.

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
See the Geoweb Guru for online mapping
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 07-22-2007
Junior Member
White Belt
 
Join Date: Jul 2007
Posts: 4
Re: Calculate driving distance matrix in Excel

Richard - thanks for the input. One question however - about how long would it take to generate a 50 x 100 matrix (table/chart) in Excel? I saw a comment on the Milecharter website that indicated it might take some time to do this. Thanks
DaveOKC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 07-22-2007
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,580
Blog Entries: 3
Re: Calculate driving distance matrix in Excel

It really depends on how far apart the locations are... but say it takes two seconds per route, then 2 x 50 x 200 = about 6 hours I think. As long as you precalculate I think it's fairly reasonable.
Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 07-22-2007
Junior Member
White Belt
 
Join Date: Jul 2007
Posts: 4
Re: Calculate driving distance matrix in Excel

Good point on the route distances. Most of the measurements will be from 1/2 mile to 4 miles. If the average time is two seconds, or even one second, this will pose a problem for me. Can anyone verify this for me?
DaveOKC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 07-23-2007
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,439
Blog Entries: 40
Re: Calculate driving distance matrix in Excel

The route calculation time is due to MapPoint. MileCharter adds virtually no overhead (I made sure of that!).

My rule of thumb (on a P4 @2.4GHz) is 1 second per route. That is an average US route - ie. lots of AK-CA would take longer. Within one State is noticeably less (0.5sec perhaps). 4 miles should be even less.
(The rule of thumb comes from some timing tests I did in MapPoint before MileCharter was written. The test data was spread across the eastern half of the US).

There's also an option to hide MapPoint during processing. This can be inconvenient if you're using the PC for something else at the same time, but it removes the overhead of MapPoint drawing each and every route. I would expect this to be fairly constant per route length - so more significant for shorter routes. Also your PC is probably faster than my P4 example.

Try it - there's a free 14 day trial.

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
See the Geoweb Guru for online mapping
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 07-24-2007
Junior Member
White Belt
 
Join Date: Jan 2004
Posts: 5
Wink Re: Calculate driving distance matrix in Excel

Dave, I've built an Excel model that does just the thing

You input the Lat/longs and it outputs the following:

- a map of all the points
- a road distance matrix
- a straight-line matrix
- a speed matrix
- a time matrix
- and a 'wiggle' matrix (road/straight-line)

You can also select whether you want miles/kms, shortest/quickest, mins/hours and so on, plus drivetime zones for the map itself.

Send me an email and I'll send you the model. If it's for personal use then I won't charge...

Adam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 07-25-2007
Junior Member
White Belt
 
Join Date: Jul 2007
Posts: 4
Re: Calculate driving distance matrix in Excel

Adam - thanks for the offer - I sent you a PM. Let me know how to reach you.
DaveOKC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 12-09-2008
Junior Member
White Belt
 
Join Date: Dec 2008
Posts: 1
Re: Calculate driving distance matrix in Excel

maddog,
I am not sure if this thread is too old to post a message, but I am also interested in checking out your Excel Model.

Regards,
diku1

Quote:
Originally Posted by maddog 2 View Post
Dave, I've built an Excel model that does just the thing

You input the Lat/longs and it outputs the following:

- a map of all the points
- a road distance matrix
- a straight-line matrix
- a speed matrix
- a time matrix
- and a 'wiggle' matrix (road/straight-line)

You can also select whether you want miles/kms, shortest/quickest, mins/hours and so on, plus drivetime zones for the map itself.

Send me an email and I'll send you the model. If it's for personal use then I won't charge...

Adam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
calculate, distance, driving, excel, matrix


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
How do I get the driving distance of two addresses? dawa MapPoint Desktop Discussion 5 04-18-2008 01:23 AM
Driving Distance from a Point BC1968 MapPoint Desktop Discussion 4 07-21-2007 08:04 AM
Distance matrix question routesmith Bing Maps and MapPoint Web Service 1 04-10-2006 02:58 PM
Driving distance between two postcodes zippy MapPoint Desktop Discussion 2 10-24-2004 10:56 PM
SHORTEST DRIVING DISTANCE Anonymous Bing Maps and MapPoint Web Service 1 07-29-2004 07:51 PM


All times are GMT -5. The time now is 05:03 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.0 RC3
MP2K Magazine
Visitor Map



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69