<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Routing Error Between Two Addresses in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651019#M32414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried both true and false, and both give the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code where I changed it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
NAServerPropertySets serverStopsPropertySets = new NAServerPropertySets();
serverStopsPropertySets.PropertySets = stopPropertySets.ToArray();
routeParams.Stops = serverStopsPropertySets;
routeParams.Stops.DoNotLocateOnRestrictedElements = false;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought this was all I had to do.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:36:17 GMT</pubDate>
    <dc:creator>DavidHowell</dc:creator>
    <dc:date>2021-12-12T03:36:17Z</dc:date>
    <item>
      <title>Routing Error Between Two Addresses</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651011#M32406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am currently using ArcGIS Online by consuming the web services located at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://premiumtasks.arcgisonline.com/Server/services/NetworkAnalysis/ESRI_Route_NA/MapServer/NAServer?token=" rel="nofollow" target="_blank"&gt;http://premiumtasks.arcgisonline.com/Server/services/NetworkAnalysis/ESRI_Route_NA/MapServer/NAServer?token=&lt;/A&gt;&lt;SPAN&gt;{our token}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I try to get routing between the following two addresses, I get this error..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;"[End Site Name]" in "Stops" is on a non-traversable network element position. Invalid locations detected.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the two addresses:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Start:&amp;nbsp; 4145 So Alameda, Corpus Christi, TX 78414&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End: 4525 Gollihar, Corpus Christi, TX 78411&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried using a number of different start addresses, but it always gives this error for this end address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the NAServerRouteParams that I am explicitly setting with our code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;routeParams.DirectionsLengthUnits = esriNetworkAttributeUnits.esriNAUMiles;&lt;BR /&gt;routeParams.FindBestSequence = false;&lt;BR /&gt;routeParams.IgnoreInvalidLocations = false;&lt;BR /&gt;routeParams.PreserveFirstStop = true;&lt;BR /&gt;routeParams.PreserveLastStop = true;&lt;BR /&gt;routeParams.ReturnCompactDirections = true;&lt;BR /&gt;routeParams.ReturnDirections = false;&lt;BR /&gt;routeParams.ReturnMap = false;&lt;BR /&gt;routeParams.ReturnRouteGeometries = false;&lt;BR /&gt;routeParams.ReturnStops = false;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 11:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651011#M32406</guid>
      <dc:creator>DavidHowell</dc:creator>
      <dc:date>2011-10-12T11:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Error Between Two Addresses</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651012#M32407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's some info from the team that manages this service...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;They can use this attribute doNotLocateOnRestrictedElements and set it to true if they want to bypass the restrictions.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 18:51:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651012#M32407</guid>
      <dc:creator>MikeMinami</dc:creator>
      <dc:date>2011-10-12T18:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Error Between Two Addresses</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651013#M32408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not have that property to set.&amp;nbsp; I have attached screenshots of the properties that I have available from the proxy class that's generated by Visual Studio.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could it be done using the RestrictionAttributeNames property?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 20:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651013#M32408</guid>
      <dc:creator>DavidHowell</dc:creator>
      <dc:date>2011-10-12T20:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Error Between Two Addresses</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651014#M32409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A help reference from our developers...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00360000010t000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00360000010t000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 23:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651014#M32409</guid>
      <dc:creator>MikeMinami</dc:creator>
      <dc:date>2011-10-12T23:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Error Between Two Addresses</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651015#M32410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome reference.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 12:14:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651015#M32410</guid>
      <dc:creator>DavidHowell</dc:creator>
      <dc:date>2011-10-13T12:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Error Between Two Addresses</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651016#M32411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nevermind, I found the property.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 13:09:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651016#M32411</guid>
      <dc:creator>DavidHowell</dc:creator>
      <dc:date>2011-10-13T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Error Between Two Addresses</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651017#M32412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I set the DoNotLocateOnRestrictedElements property to true, and I still get the same error message.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 13:26:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651017#M32412</guid>
      <dc:creator>DavidHowell</dc:creator>
      <dc:date>2011-10-13T13:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Error Between Two Addresses</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651018#M32413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't you want to set the value to false? Because you want to locate on this road. True seems to imply the current behavior, where you can't locate on that street. I think the original info from our developer was in error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 15:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651018#M32413</guid>
      <dc:creator>MikeMinami</dc:creator>
      <dc:date>2011-10-13T15:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Error Between Two Addresses</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651019#M32414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried both true and false, and both give the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code where I changed it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
NAServerPropertySets serverStopsPropertySets = new NAServerPropertySets();
serverStopsPropertySets.PropertySets = stopPropertySets.ToArray();
routeParams.Stops = serverStopsPropertySets;
routeParams.Stops.DoNotLocateOnRestrictedElements = false;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought this was all I had to do.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651019#M32414</guid>
      <dc:creator>DavidHowell</dc:creator>
      <dc:date>2021-12-12T03:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Error Between Two Addresses</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651020#M32415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here are two more suggestions from our developer. I think you want suggestion 2...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;STRONG&gt;1st suggestion:&lt;/STRONG&gt;&lt;BR /&gt;Setting DoNotLocateOnRestrictedElements to True in this case will move the stop to the nearest traversable street. Make sure he also specifies the �??Specified�?� flag:&lt;BR /&gt;&lt;BR /&gt;.DoNotLocateOnRestrictedElements = true&lt;BR /&gt;.DoNotLocateOnRestrictedElementsSpecified = true&lt;BR /&gt;&lt;BR /&gt;The reason is due to the way how .NET generates proxies for optional SOAP params. &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;2nd suggestion:&lt;/STRONG&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;On the 2nd page of this OMD &lt;A href="http://help.arcgis.com/en/sdk/10.0/Arcobjects_net/pdf/NetworkAnalystObjectModel.pdf"&gt;http://help.arcgis.com/en/sdk/10.0/Arcobjects_net/pdf/NetworkAnalystObjectModel.pdf&lt;/A&gt;&lt;BR /&gt;There is RestrictionAttributeNames:IStringArray parameter: ask him to remove �??Service Roads�?� from it before making the Solver request.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 21:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651020#M32415</guid>
      <dc:creator>MikeMinami</dc:creator>
      <dc:date>2011-10-13T21:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Error Between Two Addresses</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651021#M32416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Adding '.DoNotLocateOnRestrictedElementsSpecified = true' seemed to do the trick.&amp;nbsp; For now, I didn't change suggestion #2.&amp;nbsp; If I have problems in the future, I will look into making that change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all the help Mike.&amp;nbsp; Thank the developers for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 18:20:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/routing-error-between-two-addresses/m-p/651021#M32416</guid>
      <dc:creator>DavidHowell</dc:creator>
      <dc:date>2011-10-14T18:20:34Z</dc:date>
    </item>
  </channel>
</rss>

