Announcement

Collapse
No announcement yet.

An attempt to fix MapPoint Highway rerouting

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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..
    LilliPut Housing Complete
    MAP POINT WITH EARTH MATE
    TV/FM/XM
    1.7 GHZ 500MB RAM , 60 GB HD
    SLIM LINE DVD DRIVE
    FRONT END: CUSTOM A.N.D.I. - M.P

  • #2
    Originally posted by VBWizz View Post
    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..
    LilliPut Housing Complete
    MAP POINT WITH EARTH MATE
    TV/FM/XM
    1.7 GHZ 500MB RAM , 60 GB HD
    SLIM LINE DVD DRIVE
    FRONT END: CUSTOM A.N.D.I. - M.P

    Comment


    • #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.

      Comment


      • #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..
        LilliPut Housing Complete
        MAP POINT WITH EARTH MATE
        TV/FM/XM
        1.7 GHZ 500MB RAM , 60 GB HD
        SLIM LINE DVD DRIVE
        FRONT END: CUSTOM A.N.D.I. - M.P

        Comment

        Working...
        X