PDA

View Full Version : Defaulting the setting to shortest instead of quickest



nlgonsal
09-23-2005, 08:06 AM
Hi,
I was wondering how I could have Mappoint default to the shortest route instead of the quickest. I would like Mappoint to come up with it all the time instead of having to select it everytime I create a route.

Thanks for any help,
N

calv1ns
09-27-2005, 11:09 PM
Sorry - No.

Yes if you create your routes with a program.

The Route.Waypoint Object allows you to define:

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

The options are:

2 geoSegmentPreferred
0 geoSegmentQuickest
1 geoSegmentShortest

Note you set this for each item in the waypoint collection.

nlgonsal
09-28-2005, 10:05 AM
How do I gain access to the Route.Waypoint.Object? Through VB or VC++? Is it a COM object in Visual STudio?

Thanks,
nitin

calv1ns
09-29-2005, 05:18 PM
Any programming environment that will allow you to reference the MapPoint Controls. VB, C++, Visual Studio all work.