"[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;
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 = trueThe 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.pdfThere is RestrictionAttributeNames:IStringArray parameter: ask him to remove �??Service Roads�?� from it before making the Solver request.
NAServerPropertySets serverStopsPropertySets = new NAServerPropertySets(); serverStopsPropertySets.PropertySets = stopPropertySets.ToArray(); routeParams.Stops = serverStopsPropertySets; routeParams.Stops.DoNotLocateOnRestrictedElements = 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.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.