Trying to optimize of minimum miles driven

BobFromBoston
04-22-2006, 09:03 AM
Hi,

Before calling Calculate() or Optimize(), can I specify that MapPoint reduce the total miles driven?

I can't find a place for me to set this, but it's possible that many moons ago I chose to minimize travel time. I kinda remember that. But I can't find the settings.

Has anybody run into this?


Thanks,
Bob

Wilfried
04-22-2006, 12:20 PM
Hi Bob,

You have to set for each waypoint:

wp.SegmentPreferences = GeoSegmentPreferences.geoSegmentShortest;

BobFromBoston
04-22-2006, 06:31 PM
Wilfried,

That sounds like a very plausible solution. That way it can be broken up by leg.

Thanks,
Bob

PS I used to live in Hamburg, and at the time was married to a German. We traveled to Amsterdam, and on a boat tour was able to understand whole sentences spoken in Dutch by the captain. But that was a long time ago, and it's been many year since "Ich habe Deutche gesprochen"

 
Web mp2kmag.com
mapforums.com