Hi,
I am currently integrating MapPoint 2004 into a VB6 application. The application uses MapPoint to calculate the driving distance and time between calls at different addresses for an employee.
It currently does by this creating a map, adding two waypoints for each journey between calls, calculating the route and passing back the driving distance and time to the main application, then closing the map.
This is then repeated for each journey between addresses in the employees workload for that day.
When this process is performed for several hundred employees it gets pretty slow, so I want to improve the performance.
I have done this to some extent by creating a map only once, then calculating each successive journey between zip codes on the same map, clearing the route every time. This has produced an improvement.
What I would like to do now is to add ALL the postcodes representing an employees calls that day to the map as waypoints, then calculate the route for the whole day instead of using pairs of calls and calculating the route between these.
I have tried this but there is no way of accessing the driving time and distance between each waypoint in the route without MapPoint recalculating the route between the two waypoints, and I need the individual driving time/distance between each pair of Waypoints.
This information must be somewhere within MapPoint as MapPoint must internally total this information up in order to get the overall time/distance for the route, but I can see no object/property/method that allows me to get at it.
Does anyone have any ideas? I hope I have clearly explained the problem
Basically instead of
Add Postcode 1 waypoint
Add postcode 2 waypoint
calculate route to get time/distance
Add postcode 2 waypoint
Add postcode 3 waypoint
calculate route to get time/distance
I want to
Add Postcode 1 waypoint
Add postcode 2 waypoint
Add postcode 3 waypoint
calculate whole route 1>3 and find the postcode 1>postcode 2 time/distance and the postcode 2>postcode 3 time/distance without performing another route calculation
Thanks you in advance for your help.