Hi,
I am trying to build on the Esri Silverlight route example, using the ESRI_Route_NA service. I am successfully submitting and displaying the calculated route data.
I have a GraphicsLayer that contains a listing of stops (or point attributes) that I am using for the input RouteParameters.Stops.
I want to be able to identify the sorted order of Stops that was determined by the routing service. From what I have read, the 'SourceOID' field in the returned Stops object should contain the ID of the original stop. In my testing, this is not the case.
Can anyone tell me how I can map this SourceOID field from my input? The output SourceOID looks like contains a unique value identifying the stop, but it is a number that has no relation to my input attributes (that I can find). I have tried renaming my input attributes to be 'SourceOID' or 'SOID' without any luck on the output.
Any help is much appreciated.
Thanks
Jon
I am trying to build on the Esri Silverlight route example, using the ESRI_Route_NA service. I am successfully submitting and displaying the calculated route data.
I have a GraphicsLayer that contains a listing of stops (or point attributes) that I am using for the input RouteParameters.Stops.
I want to be able to identify the sorted order of Stops that was determined by the routing service. From what I have read, the 'SourceOID' field in the returned Stops object should contain the ID of the original stop. In my testing, this is not the case.
Can anyone tell me how I can map this SourceOID field from my input? The output SourceOID looks like contains a unique value identifying the stop, but it is a number that has no relation to my input attributes (that I can find). I have tried renaming my input attributes to be 'SourceOID' or 'SOID' without any luck on the output.
Any help is much appreciated.
Thanks
Jon
The SourceOID field is one of four fields that are used to identify where along the network the stop is located. The other three fields are SourceID, SideOfEdge, and PosAlong.
You see, each stop has two locations. The first location is the actual x/y of the shape. This is where the stop is located geographically. The second location is where along the streets the stop is considered to be. Imagine a square block of streets with your stop x/y located somewhere in the middle. Network Analyst needs to determine which of the surrounding streets you mean to use as the place to arrive at or depart from the stop.
The four location fields are:
SourceOID - the object ID of the street feature that the stop is located along
SourceID - the ID of the street feature class
SideOfEdge - is the stop considered to be on the right or left side of the feature at its position
PosAlong - from 0.0 to 1.0, where along the feature is the stop located.
I hope this helped,
Patrick