Select to view content in your preferred language

Routing Error Between Two Addresses

2676
10
10-12-2011 04:47 AM
DavidHowell
Emerging Contributor
I am currently using ArcGIS Online by consuming the web services located at:

http://premiumtasks.arcgisonline.com/Server/services/NetworkAnalysis/ESRI_Route_NA/MapServer/NAServe...{our token}

However, when I try to get routing between the following two addresses, I get this error..


"[End Site Name]" in "Stops" is on a non-traversable network element position. Invalid locations detected.


Here are the two addresses:

Start:  4145 So Alameda, Corpus Christi, TX 78414
End: 4525 Gollihar, Corpus Christi, TX 78411

The End address does get a valid geocoding from ESRI, so it would seem that the address is fine as far as ESRI finding it.

I've tried using a number of different start addresses, but it always gives this error for this end address.

Here are the NAServerRouteParams that I am explicitly setting with our code...


routeParams.DirectionsLengthUnits = esriNetworkAttributeUnits.esriNAUMiles;
routeParams.FindBestSequence = false;
routeParams.IgnoreInvalidLocations = false;
routeParams.PreserveFirstStop = true;
routeParams.PreserveLastStop = true;
routeParams.ReturnCompactDirections = true;
routeParams.ReturnDirections = false;
routeParams.ReturnMap = false;
routeParams.ReturnRouteGeometries = false;
routeParams.ReturnStops = false;


Any ideas?
Tags (2)
0 Kudos
10 Replies
DavidHowell
Emerging Contributor
Adding '.DoNotLocateOnRestrictedElementsSpecified = true' seemed to do the trick.  For now, I didn't change suggestion #2.  If I have problems in the future, I will look into making that change.

Thanks for all the help Mike.  Thank the developers for me.
0 Kudos