Thread: An attempt to fix MapPoint Highway rerouting

1. An attempt to fix MapPoint Highway rerouting

Hey Guys

I have been trying for a while to get mappoint to route from a location on a highway and as every one knows it just draws a line to the nearest road and then the route is way off.

Here is what I came up with.

In the RouteAfterCalculate event I check the Directions Instructions for all the directions if the First One Contains Local Road(s) then I am assuming I am on a freeway ( I know Assumtion is the key to all F**k ups) But any way.
after that I iterate all the directions untill I find one that says take ramp
which would mean that puts me back on the freeway.. I use the locaiton object of that direction as my starting point. and calculate the route but that does not seem to work.

any body have any ideas..

2. Originally Posted by VBWizz
Hey Guys

I have been trying for a while to get mappoint to route from a location on a highway and as every one knows it just draws a line to the nearest road and then the route is way off.

Here is what I came up with.

In the RouteAfterCalculate event I check the Directions Instructions for all the directions if the First One Contains Local Road(s) then I am assuming I am on a freeway ( I know Assumtion is the key to all F**k ups) But any way.
after that I iterate all the directions untill I find one that says take ramp
which would mean that puts me back on the freeway.. I use the locaiton object of that direction as my starting point. and calculate the route but that does not seem to work.

any body have any ideas..

Ok So I got the above to work, Any body have an Idea how to draw a line from the current location to the that of the starting point. I and I mean not a strieght line, but a line that snaps to the road..

3. If someone knows how to do this, I'd love to see it. Apparently this is what MS has done with S&T...if you look closely when you are on the highway and create a route it creates a triangle between your location, the closest local road, and the first on ramp on your route.

4. You Know I found a snap to road Function On one of the mappoint web sites however it is in Delphi, and I dont understand it.. If i can find a C# or VB version, that may be a good starting point..

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•