View Single Post

  #6 (permalink)  
Old 10-20-2002
John Meyer's Avatar
John Meyer John Meyer is offline
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
Well, I don't have solution but one idea might be:

1 use the waypoint.add method and calculate a route (behind the scenes)

2. enumerate the directions. The directions collection has a location property.

Now the hard part. Some how you need to follow the road getting lat/lon along the way, maybe every one tenth of a mile? You might be ale to use some logic from Walt Cygan's Reverse Geocoding, Pt. III article. You give his routine a lat/lon and it "starts working outward in squares (spherical rectangles really) each 1-ten thousandth of point of latitude and longitude larger that the one before" Now he is looking for an address, you will be looking to see if you are still on the same road, heading is the right cardinal direction!

Not impossible to do, but again I don't have the solution, just an idea!

Anyway, I tried to see if the line drawn on the map showing the route was a shape that you could capture or otherwise work with but I have not found a way, there is nothing documented that I can see.
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Reply With Quote