Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 7 of 7

Discover differences between routes

This is a discussion on Discover differences between routes within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello, I want to develop an application (c# + mappoint2004 active x) in order to - First define a route ...

  1. #1
    PeppeM is offline Junior Member Yellow Belt
    Join Date
    Apr 2006
    Posts
    13

    Discover differences between routes

    Hello,

    I want to develop an application (c# + mappoint2004 active x) in order to

    - First define a route (this isn't a problem).. by clicking into map.ROUTE1

    - Then I load a gps sentences retrieved by a car along the route.ROUTE2
    (this isn't a problem)

    But.. How I can discover differences between ROUTE1 and ROUTE2?
    Are There any tips for matching two routes in order to check if the car drive along ROUTE1?

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    This is one of those things that is a lot easier with the human eye than with a computer.

    The main problem in doing it with MapPoint is that you need the MapPoint-computed route coordinates. MapPoint will give you coordinates, but these are for viewing route segments - there's no guaranteee that they'll even be on the route!

    You might be able to try grabbing an image and trying to compare the green route line with your GPS coordinates. Difficult but not impossible.


    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  3. #3
    PeppeM is offline Junior Member Yellow Belt
    Join Date
    Apr 2006
    Posts
    13
    I need to match the route not only by human eyes but I need to obtain analytics information about routes differences..

    I'm starting to improve this idea:

    - Normalize ROUTE1 and ROUTE2 by using

    foreach (MapPoint.Direction direction in route.Directions)
    {
    if (direction.Instruction.ToString().StartsWith("Part enza") ||
    direction.Instruction.ToString().Contains("Svoltar e") ||
    direction.Instruction.ToString().StartsWith("Arriv o"))
    { double lat = 0;
    double lon = 0;
    this.CalcPos(direction.Location, ref lat, ref lon); DAL.InsertLocationToDB(lat,lon,direction.Instructi on.ToString(),"DIRECTIONS");
    }

    }


    - Then I match the NORMALIZED_ROUTE1 and NORMALIZED_ROUTE2
    by watch the differences between each (lat,lon,direction.Instruction.ToString())

    But the string matching algorithm (direction.Instruction ..) make me doubtful..

    Another solution is matching the direction.location but this is a middle segment point.. Isn't impossibile to have start and end segment location?

    p.s. Partenza(ita) == Start(eng)
    Svoltare(ita) == turn(eng)
    Arrivo(ita) == end(eng)

  4. #4
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    It isn't even a middle segment point - it is the middle view point (and altitude) for viewing that segment. This is what I was referring to erlier when I said that there was no guarantee that it is even on the segment!


    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  5. #5
    PeppeM is offline Junior Member Yellow Belt
    Join Date
    Apr 2006
    Posts
    13
    >> There was no guarantee that it is even on the segment!

    A point can be in another street?
    If a point isn't on the segment (in the case isn't on another street) I Quantized it into a street.

  6. #6
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    Could be - it might even be over water.

    Think of a case where the segment is a "U-shape". The point will be in the middle of the, and the road segmentwill go around it (down, below, and back up again)



    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  7. #7
    PeppeM is offline Junior Member Yellow Belt
    Join Date
    Apr 2006
    Posts
    13
    I'm evalutating the image matching.

    - I export a gif of mappoint route.
    - I apply a filter in order to extract only the route
    - then I discover the differences between route by perform a XOR betwen
    IMAGE_ROUTE_A and IMAGE_ROUTE_B
    - The XORED image is georeferencied: I can report the difference in mappoint

    Is a good Idea?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help with differences between vb6 and vb .Net
    By takk in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-02-2005, 06:04 AM
  2. Differences between European Trial and Full NA Editions
    By frankp in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 04-17-2005, 09:59 PM
  3. More routes in the same map
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-09-2005, 10:09 AM
  4. Routes
    By Anonymous in forum Wish List
    Replies: 1
    Last Post: 09-03-2002, 11:24 PM
  5. I need to add bus routes to a map. What are my bes....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-26-2001, 10:41 AM

Tags for this Thread

Posting Permissions

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96