Community of VE/MapPoint Users and Developers
This is a discussion on Discover differences between routes within the MapPoint 2006/2009 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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Discover differences between routes 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? |
| ||||
|
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 See the Geoweb Guru for online mapping |
| |||
|
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) |
| ||||
|
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 See the Geoweb Guru for online mapping |
| ||||
|
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 See the Geoweb Guru for online mapping |
| |||
|
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? |
![]() |
| Tags |
| differences, discover, routes |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with differences between vb6 and vb .Net | takk | MapPoint 2006/2009 Discussion | 1 | 08-02-2005 06:04 AM |
| Differences between European Trial and Full NA Editions | frankp | MapPoint 2006/2009 Discussion | 7 | 04-17-2005 09:59 PM |
| More routes in the same map | Anonymous | MapPoint 2006/2009 Discussion | 1 | 03-09-2005 10:09 AM |
| Routes | Anonymous | Wish List | 1 | 09-03-2002 11:24 PM |
| I need to add bus routes to a map. What are my bes.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-26-2001 10:41 AM |