MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Discover differences between routes

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


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-06-2006
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 04-06-2006
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 918
Blog Entries: 11
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 04-07-2006
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 04-07-2006
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 918
Blog Entries: 11
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 04-07-2006
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 04-10-2006
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 918
Blog Entries: 11
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 04-11-2006
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
differences, discover, routes


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 04:01 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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