ArcGIS Server - route comparison

I have a list of points and a route that an external provider has created through these points.

I would like to create a route using the same point with my own road network.

Then I want to be able to determine if there is any significant difference between the two routes.

One suggestion is that for 2 routes we figure out which road segments they are moving and compare the list of road segments?

Is this a valid approach? How can we get a list of road segments given a route?

I am using ArcGis 9.3 server with Java 5 and Oracle 10g. I am using ST and NetworkAnalyst functions via java api.

Thank.

0


source to share


2 answers


Calculate a route using your waypoints and road network. Then buffer the resulting route into a polygon (the buffer radius should be your "tolerance"). Then anchor the outer route using your polygon. If the resulting polyline is not empty, then the deviation is out of your tolerance.

This method does not account for any "significant" deviations such as rollback, U-turn, or parallel parallel road.



Alternatively, you can compare the resulting "directions" and check for deviations there - in particular, using street names. This saves you the trouble of checking every segment of the road. If you have deviations in road names, check the individual road segments in each section.

+1


source


I've just implemented something similar in my application. I have a list of lat / long coordinates from a GPS device and need to create a route based on this data.

I started by mapping each GPS position to a node in my network. I then removed the "sequential" nodes to filter out those sequential positions that are on the same node. Then I started walking around my street network starting from the first node. I checked the first node and the second node and checked the general street segment. If I could find one, great. If not, I create the shortest path between the two nodes and use these roads instead. I keep doing this until I have examined all the nodes. At the end of this process, I have a list of road segments that the car traveled in and the order in which they traveled.



Unfortunately I am using a different card, different programming language and different database. So sharing your code won't help you at all. Hope the above process will be enough help to complete your task.

0


source







All Articles