Community of VE/MapPoint Users and Developers
This is a discussion on I have downloaded the database example where you h.... within the MapPoint 2006/2009 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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| |
| |||
|
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 |
![]() |
| Tags |
| database, downloaded |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help installing downloaded Copy of MP NA 2004 | Anonymous | MapPoint 2006/2009 Discussion | 1 | 09-10-2004 04:55 PM |
| Sharing a map or a database ? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-21-2002 06:38 PM |
| Import of Database | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-26-2002 03:05 PM |
| I just downloaded the Tool Spatial data import too.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-30-2001 09:05 AM |
| One more question...I have downloaded the Spatial .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-26-2001 12:00 PM |