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 12:29 PM |
| Distance Calculations in Mappoint | SiGreenwood | MapPoint 2006/2009 Discussion | 2 | 06-01-2005 10:56 PM |
| My calculations on distance and time appear to be wrong | Anonymous | MapPoint 2006/2009 Discussion | 0 | 11-27-2004 05:58 PM |
| Batch Processing | Anonymous | MapPoint 2006/2009 Discussion | 0 | 08-27-2004 12:31 AM |
| Batch Loading | Anonymous | MapPoint 2006/2009 Discussion | 1 | 09-26-2002 04:19 PM |
French Ski Holidays
French ski holidays will suit all skiers and most taste buds too. There is a huge range of accommodation from self-catered or catered chalets to all-inclusive luxury hotels.
Italy Holidays
Find and book Italy Holidays with Travel Counsellors. Holiday destinations around the world including Italy.
Thailand Holiday
A Thailand Holiday has much to offer with historic culture, lively arts, beautiful beaches, a good nightlife, friendly and hospitable people and one of the best cuisines in the world.
Nile Cruises
Nile cruises are one of the best ways to discover the riches of Egypt. See ancient ruins and lush verdure from the River Nile. Book today!
Cheap Turkey Holidays
The best time of year to sneak in cheap Turkey holidays is during the off-peak season. Check out the great deals available during April, May or October. For other tips on how to bag a great value holiday simply check online at ulookubook.com
Travel Deals
Click here and read up on the travel deals available online.
Cheap Fuerteventura Holidays
Enjoy the deep sands of the Canary Islands. Find cheap Fuerteventura holidays at On The Beach!