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


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 03:55 PM
Sharing a map or a database ? Anonymous MapPoint 2006/2009 Discussion 1 10-21-2002 05:38 PM
Import of Database Anonymous MapPoint 2006/2009 Discussion 1 08-26-2002 02:05 PM
I just downloaded the Tool Spatial data import too.... Anonymous MapPoint 2006/2009 Discussion 1 10-30-2001 08:05 AM
One more question...I have downloaded the Spatial .... Anonymous MapPoint 2006/2009 Discussion 1 10-26-2001 11:00 AM


All times are GMT -5. The time now is 04:05 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

Cheap Flight to Tenerife
Get a cheap flight to Tenerife and a cheap hotel in Tenerife giving you a great value holiday in Tenerife. Holiday Hypermarket can make it happen.

Travel Counsellors
Travel Counsellors are an award winning Travel Agent. Have a personal Travel Counsellor help with your travel plans.

Holiday Italy
A Holiday in Italy can mean many different things to many different people. This diverse country has an abundance of art, wine, food and stunning beaches. Book online today.

Bahamas Holidays
Bahamas Holidays offer pure blue skies, soft white beaches and the holiday of a lifetime. Visit us for a great deal to the Bahamas.

Cheap Balearics Holidays
Cheap Balearics holidays are available if you know when to book and who to book with. The Balearics have many fascinating places to visit all year round. The partying never stops.

Price comparison sites
Travel.co.uk is the one you are looking for when checking out price comparison sites.

Holidays in Cyprus
Visit the tombs of the island kings! Visit On The Beach for information on holidays in Cyprus.


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