View Single Post

  #2 (permalink)  
Old 11-02-2007
Winwaed's Avatar
Winwaed Winwaed is offline
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 899
Blog Entries: 10
Re: Calculate distance from a point to a route

Well, which bit of the route?

You will need to loop over the route. The waypoints are all available for distance measuring.
The directions also have location objects but these are intended to be "ideal viewpoints" - ie. there's no guarantee that they are actually on the route.

If your route can be recalculated as a shortest route, then adding frequent rest stops may be useful. You can then measure the distance to each of the rest stops.

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Reply With Quote