Select to view content in your preferred language

Route name as route parameter for route task

2219
2
Jump to solution
02-15-2013 12:35 AM
ab1
by
Deactivated User
Hi,

I'd like to specify the route name as a parameter to be sent to the NA server. The aim is to have the specified route name in the route result object.
I didn't find any attribute in the route paramerters class allowing that.
Is there any solution to follow?

Regards.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
BjornSvensson
Esri Regular Contributor
There is no need to send something along to the server (and expecting it back). The AsyncResponder supports a third argument "token" which can be used for this. There is no need to create special classes or wrap it when the Adobe/Apache Flex SDK support it already 🙂

token:Object (default = null) ??? Additional information to associate with this request.


Some of the ArcGIS API for Flex samples take advantage of this, for example in the "Routing Directions" example which use it to keep track of the "from" and "to" geocodes: http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Route_Directions/01nq0000000p000000...

--- see http://gis.stackexchange.com/questions/52034/how-can-i-send-a-parameter-with-a-routetask-and-get-it-...

View solution in original post

0 Kudos
2 Replies
ab1
by
Deactivated User
In fact, I'd like to send a parameter with the Route Task and be able to get that same parameter in the RouteResult object.
The goal is to be able to recognize the routes I receive from the server when I perform many solve operations on the same RouteTask.
0 Kudos
BjornSvensson
Esri Regular Contributor
There is no need to send something along to the server (and expecting it back). The AsyncResponder supports a third argument "token" which can be used for this. There is no need to create special classes or wrap it when the Adobe/Apache Flex SDK support it already 🙂

token:Object (default = null) ??? Additional information to associate with this request.


Some of the ArcGIS API for Flex samples take advantage of this, for example in the "Routing Directions" example which use it to keep track of the "from" and "to" geocodes: http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Route_Directions/01nq0000000p000000...

--- see http://gis.stackexchange.com/questions/52034/how-can-i-send-a-parameter-with-a-routetask-and-get-it-...
0 Kudos