How can I pass an ID on a stop, and get it in return using the REST API?

Discussion created by joachim.juellgeodata-no-esridist Employee on Aug 5, 2011
I'm using the solve function on a Route layer in ArcGIS Server 10 REST API. I send in a set of stops, ask it to find the best sequence and return the stops, and get the route and stops back. But then I want to know the new optimized order of my stops.

How can I relate the stops I send in to the stops I get in return, without using the Name-attribute (thats used for the driving directions)?

Thanks :)