<?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 Is there any way to ignore one-way streets using ArcGIS Online routing service? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-ignore-one-way-streets-using/m-p/242734#M22471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to set parameters for a RouteTask using the ArcGIS Online routing service and I am unable to find any way to ignore one-way streets. I would have thought that setting the impedanceAttribute or travel mode to walk time should then ignore one-way streets, however that does not appear to be the case. It does not make sense that walk mode would have to follow a one-way street restriction. Using Google maps, for example, you get the expected output if you choose walk mode for the directions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know if you are building your own network analysis service from scratch you can set a rule to ignore one-way streets, but I will not be doing that and hosting my own service. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas if this can be done or if it will be added in the future?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2016 20:22:44 GMT</pubDate>
    <dc:creator>j_rsg</dc:creator>
    <dc:date>2016-04-28T20:22:44Z</dc:date>
    <item>
      <title>Is there any way to ignore one-way streets using ArcGIS Online routing service?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-ignore-one-way-streets-using/m-p/242734#M22471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to set parameters for a RouteTask using the ArcGIS Online routing service and I am unable to find any way to ignore one-way streets. I would have thought that setting the impedanceAttribute or travel mode to walk time should then ignore one-way streets, however that does not appear to be the case. It does not make sense that walk mode would have to follow a one-way street restriction. Using Google maps, for example, you get the expected output if you choose walk mode for the directions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know if you are building your own network analysis service from scratch you can set a rule to ignore one-way streets, but I will not be doing that and hosting my own service. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas if this can be done or if it will be added in the future?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 20:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-ignore-one-way-streets-using/m-p/242734#M22471</guid>
      <dc:creator>j_rsg</dc:creator>
      <dc:date>2016-04-28T20:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to ignore one-way streets using ArcGIS Online routing service?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-ignore-one-way-streets-using/m-p/242735#M22472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I managed to solve my own question after further work. Yes, the walk mode does ignore one-way streets. I should have outlined the original question better, but here's some tips for anyone else using the ArcGIS Online routeTask in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the routeTask sample (&lt;A href="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=routetask_find_route" title="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=routetask_find_route"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;) I set the travelMode based on the example format shown for the Route Service from the &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Route_service_with_synchronous_execution/02r300000036000000/" title="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Route_service_with_synchronous_execution/02r300000036000000/"&gt;ArcGIS REST API&lt;/A&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;routeParams.travelMode={"attributeParameterValues":[{"parameterName":"Restriction Usage","attributeName":"Walking","value":"PROHIBITED"},{"parameterName":"Restriction Usage","attributeName":"Preferred for Pedestrians","value":"PREFER_LOW"},{"parameterName":"Walking Speed (km/h)","attributeName":"WalkTime","value":5}],"description":"Follows paths and roads that allow pedestrian traffic and finds solutions that optimize travel time. The walking speed is set to 5 kilometers per hour.","impedanceAttributeName":"WalkTime","simplificationToleranceUnits":"esriMeters","uturnAtJunctions":"esriNFSBAllowBacktrack","restrictionAttributeNames":["Preferred for Pedestrians","Walking"],"useHierarchy":false,"simplificationTolerance":2,"timeAttributeName":"WalkTime","distanceAttributeName":"Miles","type":"WALK","id":"caFAgoThrvUpkFBW","name":"Walking Time"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That did the trick and ignored one-way streets. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, just setting the impedanceAttribute to "WalkingTime"&amp;nbsp; did change the routing from standard "TravelTime" but did not ignore one-way streets on its own. I ended up using the travelMode settings above instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One last tip. The format for the impedanceAttribute (&lt;A href="https://developers.arcgis.com/javascript/jsapi/routeparameters-amd.html#impedanceattribute" title="https://developers.arcgis.com/javascript/jsapi/routeparameters-amd.html#impedanceattribute"&gt;RouteParameters | API Reference | ArcGIS API for JavaScript&lt;/A&gt; ) should actually come from the impedanceAttributeName format in the Rest API if you are using the ArcGIS Online service. That confused me initially. The values are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="usertext" style="font-size: 12.8px; font-family: 'Courier New', Courier, monospace;"&gt;TravelTime&lt;/SPAN&gt; (default)—Models travel times for a car. These travel times can be dynamic, fluctuating according to traffic flows, in areas where traffic data is available.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="usertext" style="font-size: 12.8px; font-family: 'Courier New', Courier, monospace;"&gt;TruckTravelTime&lt;/SPAN&gt;—Models travel times for a truck. These travel times are static for each road and don't fluctuate with traffic.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="usertext" style="font-size: 12.8px; font-family: 'Courier New', Courier, monospace;"&gt;WalkTime&lt;/SPAN&gt;—Models travel times for a pedestrian. The default walking speed is &lt;SPAN style="font-size: 12.8px;"&gt;5&lt;/SPAN&gt; kilometers per hour (&lt;SPAN style="font-size: 12.8px;"&gt;3.1&lt;/SPAN&gt; miles per hour), but you can change that speed through the &lt;SPAN class="usertext" style="font-size: 12.8px; font-family: 'Courier New', Courier, monospace;"&gt;attributeParameterValues&lt;/SPAN&gt; parameter by setting &lt;SPAN class="usertext" style="font-size: 12.8px; font-family: 'Courier New', Courier, monospace;"&gt;Walking Speed (km/h)&lt;/SPAN&gt; to a different value.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="usertext" style="font-size: 12.8px; font-family: 'Courier New', Courier, monospace;"&gt;Miles&lt;/SPAN&gt;—Specifies that the travel distance between the stops should be minimized. The total distance between the stops is calculated in miles.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="usertext" style="font-size: 12.8px; font-family: 'Courier New', Courier, monospace;"&gt;Kilometers&lt;/SPAN&gt;—Specifies that the travel distance between the stops should be minimized. The total distance between the stops is calculated in kilometers.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 00:58:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-ignore-one-way-streets-using/m-p/242735#M22472</guid>
      <dc:creator>j_rsg</dc:creator>
      <dc:date>2016-04-29T00:58:38Z</dc:date>
    </item>
  </channel>
</rss>

