MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




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


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 01-03-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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.
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 01-03-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
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
database, downloaded


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


All times are GMT -5. The time now is 10:39 AM.


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


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