Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

Is Batch Process Route Calculations Possible?

This is a discussion on Is Batch Process Route Calculations Possible? within the MapPoint Desktop 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. ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

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

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Demographic Calculations
    By Jim in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-08-2005, 12:29 PM
  2. Distance Calculations in Mappoint
    By SiGreenwood in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-01-2005, 10:56 PM
  3. My calculations on distance and time appear to be wrong
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-27-2004, 05:58 PM
  4. Batch Processing
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-27-2004, 12:31 AM
  5. Batch Loading
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-26-2002, 04:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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