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

I have downloaded the database example where you h....

This is a discussion on I have downloaded the database example where you h.... within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have downloaded the database example where you have two addresses in a db and then it calculates and pastes ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    I have downloaded the database example where you have two addresses in a db and then it calculates and pastes the map and directions back into access but can you just get it to paste the cost of the journey or just the mileage instead of teh directions. Happy New year.

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    To determine cost for a route, you can use the Cost property of the ActiveRoute
    object. For example:



    <pre>
    'oMap references your current MapPoint Map
    MsgBox "The cost for this route is " & oMap.ActiveRoute.Cost
    MsgBox "The distance for this route is " & oMap.ActiveRoute.Distance
    </pre>

    To programmatically set the driving options, use the Driver Profile object of
    the ActiveRoute object. For example:



    <pre>
    'Set the DrivingCostUnits to fixed cost based on distance and use
    'DrivingCost to set the cost at $.80 per distance unit
    objRoute.DriverProfile.DrivingCostUnits = geoCostBasedOnDistance
    objRoute.DriverProfile.DrivingCost = 1.25
    'Cost in dollars per distance unit. Mostly miles.
    objRoute.Calculate 'recalculate the route
    </pre>

    You can get more information by opening MapPoint, going to Help, selecting
    Visual Basic Reference, and clicking on the ActiveRoute or DriverProfile
    objects. - Chris Gebhardt

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help installing downloaded Copy of MP NA 2004
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-10-2004, 03:55 PM
  2. Sharing a map or a database ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-21-2002, 05:38 PM
  3. Import of Database
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-26-2002, 02:05 PM
  4. I just downloaded the Tool Spatial data import too....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-30-2001, 08:05 AM
  5. One more question...I have downloaded the Spatial ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-26-2001, 11:00 AM

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 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 70 71 72 73 74 75 76 77 78 79 80 81 82 83