MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Is Batch Process Route Calculations Possible?

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. ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-19-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Is Batch Process Route Calculations Possible?

I am considering purchasing MP -- I would like to use it to batch calculate 2000+ routes for drive distance. Can I easily automate this in MP?

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...
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 09-19-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
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
batch, calculations, process, route


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
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


All times are GMT -5. The time now is 07:18 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

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!


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