"[End Site Name]" in "Stops" is on a non-traversable network element position. Invalid locations detected.
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;
The street where this address is located has been marked as a Restricted Service Road. That�??s the reason why users are not able to route to 4245 Gollihar Road.
They can use this attribute doNotLocateOnRestrictedElements and set it to true if they want to bypass the restrictions.
NAServerPropertySets serverStopsPropertySets = new NAServerPropertySets(); serverStopsPropertySets.PropertySets = stopPropertySets.ToArray(); routeParams.Stops = serverStopsPropertySets; routeParams.Stops.DoNotLocateOnRestrictedElements = false;
1st suggestion:
Setting DoNotLocateOnRestrictedElements to True in this case will move the stop to the nearest traversable street. Make sure he also specifies the �??Specified�?� flag:
.DoNotLocateOnRestrictedElements = true
.DoNotLocateOnRestrictedElementsSpecified = true
The reason is due to the way how .NET generates proxies for optional SOAP params.
2nd suggestion:
If user wants the route to go through this particular street, he will need to turn off the �??Service Roads�?� restriction which by default makes the street non-traversable.
On the 2nd page of this OMD http://help.arcgis.com/en/sdk/10.0/Arcobjects_net/pdf/NetworkAnalystObjectModel.pdf
There is RestrictionAttributeNames:IStringArray parameter: ask him to remove �??Service Roads�?� from it before making the Solver request.