<?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 How levels of dangerousness can be set for barriers? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-levels-of-dangerousness-can-be-set-for/m-p/654238#M60963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that any way to set different weight or importance of barrier on a map? I wonder if it's possible to set different kinds of barriers in terms of levels of dangerousness. For instance, if only one of two different routes can be chosen. However, both routes have 1 barrier each. On route A the barrier has level 1 of dangerousness and the barrier on route B has level 2 of dangerousness. So the route A would be&amp;nbsp;chosen due to its lower dangerousness level.&lt;/P&gt;&lt;P&gt;I'm using polygon as barriers as shown in the picture below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/217029_Screen Shot 2016-08-19 at 1.31.54 PM.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2016 21:43:15 GMT</pubDate>
    <dc:creator>Pedro_LuizCumino</dc:creator>
    <dc:date>2016-08-19T21:43:15Z</dc:date>
    <item>
      <title>How levels of dangerousness can be set for barriers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-levels-of-dangerousness-can-be-set-for/m-p/654238#M60963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that any way to set different weight or importance of barrier on a map? I wonder if it's possible to set different kinds of barriers in terms of levels of dangerousness. For instance, if only one of two different routes can be chosen. However, both routes have 1 barrier each. On route A the barrier has level 1 of dangerousness and the barrier on route B has level 2 of dangerousness. So the route A would be&amp;nbsp;chosen due to its lower dangerousness level.&lt;/P&gt;&lt;P&gt;I'm using polygon as barriers as shown in the picture below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/217029_Screen Shot 2016-08-19 at 1.31.54 PM.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 21:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-levels-of-dangerousness-can-be-set-for/m-p/654238#M60963</guid>
      <dc:creator>Pedro_LuizCumino</dc:creator>
      <dc:date>2016-08-19T21:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: How levels of dangerousness can be set for barriers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-levels-of-dangerousness-can-be-set-for/m-p/654239#M60964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'd still need to have both routes, but then you'd need some other data to measure against. Something like maybe sidewalks, street lights, maybe crime reports. Then you could use the geometry engine to find which datasets impact which routes and determine a way to weight those values to determine a level of "dangerousness". It's not specifically built into the API to do this, but the tools to accomplish this are there. It's just about putting them together.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 23:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-levels-of-dangerousness-can-be-set-for/m-p/654239#M60964</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2016-08-19T23:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: How levels of dangerousness can be set for barriers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-levels-of-dangerousness-can-be-set-for/m-p/654240#M60965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have the report coming&amp;nbsp;from an external service, which comes as a JSON object. It informs me the location where an issue is present and must be considered when calculating the route, like a cost to the lane stretch pointed by the latitude and longitude from the issue JSON object. The issues are classified as&amp;nbsp;&lt;STRONG&gt;high&lt;/STRONG&gt;,&amp;nbsp;&lt;STRONG&gt;medium&lt;/STRONG&gt;&amp;nbsp;or&amp;nbsp;&lt;STRONG&gt;low&lt;/STRONG&gt; level. I need to set this cost to the lane stretch and then compare if it's worthwhile to select the late stretch where the issue is present or if select another route is a better decision.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How open is the route solver service in order to implement this kind of cost over a route? The idea at the end is to&amp;nbsp;select the lower cost route by comparing the issue level, the time travelling and the travelled distance using my own algorithm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I've seen so far were these links below. However, I'm struggling&amp;nbsp;to understand if it can be or not implemented using the Javascript API.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://geodienste-umwelt.hessen.de/arcgis_js_api/sdk_37/jsapi/routeparameters-amd.html#restrictionattributes" title="http://geodienste-umwelt.hessen.de/arcgis_js_api/sdk_37/jsapi/routeparameters-amd.html#restrictionattributes" rel="nofollow noopener noreferrer" target="_blank"&gt;RouteParameters-amd | API Reference | ArcGIS API for JavaScript&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/ve/help/html/P_ESRI_ArcGIS_VE_RouteParameters_RestrictionAttributes.htm" title="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/ve/help/html/P_ESRI_ArcGIS_VE_RouteParameters_RestrictionAttributes.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;RestrictionAttributes Property&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/extensions/network-analyst/using-parameters-with-network-attributes.htm" title="http://desktop.arcgis.com/en/arcmap/latest/extensions/network-analyst/using-parameters-with-network-attributes.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Using parameters with network attributes—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the given example&amp;nbsp;of restriction. But how it is&amp;nbsp;implemented as a restriction when calculating the route?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;routeParams.attributeParameterValues = [{
attributeName: "Restriction",
parameterName: "25 MPH",
value: "2.5"
}];&lt;/PRE&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:44:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-levels-of-dangerousness-can-be-set-for/m-p/654240#M60965</guid>
      <dc:creator>Pedro_LuizCumino</dc:creator>
      <dc:date>2021-12-12T16:44:23Z</dc:date>
    </item>
  </channel>
</rss>

