Community of VE/MapPoint Users and Developers
This is a discussion on Is Batch Process Route Calculations Possible? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am considering purchasing MP -- I would like to use it to batch calculate 2000+ routes for drive distance. ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Is Batch Process Route Calculations Possible? I only care about the drive distance; I don't want the map, I want a data file. I can convert my input data into any form required. Sorry if this is an obvious question.... I'm new at this... |
| ||||
|
Yes, it is easy to do with Visual Basic and MapPoint. Just in case you use VB here is a slightly modified sample from the help file. It will give you the drive distance in a message box for a route and of course you could write it to a file insted of sending it to a msgbox. Private Sub Command1_Click() Dim objApp As New MapPoint.Application Dim objMap As MapPoint.Map Dim objRoute As MapPoint.Route 'Set up the application Set objMap = objApp.ActiveMap Set objRoute = objMap.ActiveRoute objApp.Visible = False objApp.UserControl = True 'Add route stops and calculate the route objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1) objRoute.Waypoints.Add objMap.FindResults("Redmond, WA").Item(1) objRoute.Calculate 'Find the seventh direction item n = objRoute.Directions.Count MsgBox objRoute.Directions.Item(n).ElapsedDistance End Sub
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| batch, calculations, process, route |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Demographic Calculations | Jim | MapPoint 2006/2009 Discussion | 0 | 12-08-2005 01:29 PM |
| Distance Calculations in Mappoint | SiGreenwood | MapPoint 2006/2009 Discussion | 2 | 06-01-2005 11:56 PM |
| My calculations on distance and time appear to be wrong | Anonymous | MapPoint 2006/2009 Discussion | 0 | 11-27-2004 06:58 PM |
| Batch Processing | Anonymous | MapPoint 2006/2009 Discussion | 0 | 08-27-2004 01:31 AM |
| Batch Loading | Anonymous | MapPoint 2006/2009 Discussion | 1 | 09-26-2002 05:19 PM |