MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Routing: how to set shortest option

This is a discussion on Routing: how to set shortest option within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have written an application in VB code with a MapPoint control that calculates a route. The route is calculated ...


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 08-21-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Routing: how to set shortest option

I have written an application in VB code with a MapPoint control that calculates a route. The route is calculated according to the "quickest" method (I checked the same data in the full MapPoint software).

The code looks like this:
objRoute.Calculate

How do I set the "shortest" method in VB code?

Thanks to all responders.
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 08-21-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Thatīs a property that you can set for each segment of the route:

objRoute.Waypoints.Item(1).SegmentPreferences = geoSegmentShortest

Greetings, Jack.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 08-21-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
REPLY- Re: how to set shortest

Thank you very much it does work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 09-08-2003
Junior Member
White Belt
 
Join Date: Sep 2003
Posts: 5
Hi there,
This is the closest post to my question so apologies for butting in.

I have an access database of journeys, with from and to. I have to calculate the distance and time required to complete the journey.
I wrote a little VB program to do this.

Because there is so much data(140,000 records) I am processing on a number of PC's. However I am finding that the DISTANCE calculated is different on each PC.
It looks like each PC is taking a different route. One the quickest one the shortest one preferred routes.
I have set the segments option to quickest but the problem remains. Any ideas what could be happening?

Thanks & Regards,
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
option, routing, set, shortest


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
What's the shortest way from one point to another? Mohamed MapPoint 2006/2009 Discussion 3 08-18-2005 03:05 AM
option strict on issues starbuck MapPoint 2006/2009 Discussion 1 09-16-2004 06:36 AM
SHORTEST DRIVING DISTANCE Anonymous MapPoint Web Service and Virtual Earth 1 07-29-2004 08:51 PM
Disabling cut option Anonymous MapPoint 2006/2009 Discussion 0 07-09-2004 04:05 AM
pushpins option Anonymous MapPoint 2006/2009 Discussion 0 11-25-2003 05:35 AM


All times are GMT -5. The time now is 01:22 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 55