snap tolerance

957
2
10-26-2011 10:32 AM
emiliafiorini
New Contributor
I am using this network service in my application.

http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_EU/NAServer/Route

I need to pass some bridges as barriers to the route, but I would like to change the snap distance of the route layer. Is it possible to do it with javascript and the rest api? If it was my own service I would change the option in arcgis, but I don't know how to do it with an ESRi service

I am quite new to the whole subject

thanks in advance

Emilia Fiorini
0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor
It doesn't look like you can modify the snap tolerance. The parameters used by the to find the route can be specified using the route parameters class in the JavaScript api and there is not an option for specifying the snap tolerance.
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/routeparameters.htm


I am using this network service in my application.

http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_EU/NAServer/Route

I need to pass some bridges as barriers to the route, but I would like to change the snap distance of the route layer. Is it possible to do it with javascript and the rest api? If it was my own service I would change the option in arcgis, but I don't know how to do it with an ESRi service

I am quite new to the whole subject

thanks in advance

Emilia Fiorini
0 Kudos
DmitryKudinov
Occasional Contributor
Hi Emilia,

Alas, REST endpoint of the Route solver does not allow clients to change the default snap tolerance. Is you still think you need to do this, you can try doing it through SOAP, or another option would be a GP service. In the former case the things get complicated as there is now out of the box JavaScript SOAP client; in the later case - GP services are slightly slower than NAServer ones.

But I'm also curious - why do you need to change the snap tolerance? Is there a problem with accurate locating of the bridges on the network?

thanks,
Dmitry
0 Kudos