Select to view content in your preferred language

Directions Widget returns incorrect results. Looking at the wrong field when using the widget

276
0
10-06-2023 06:22 AM
AndrewReynoldsDevon
Occasional Contributor

the out of the box directions widget looks at the wrong field when carrying out a route analysis based on our route layer. The summary field is the total drive time distance not walk. This results in the output being -2.01 miles for a walk route.

Running the route solve via REST the walk calculation is like this . The Total Walk Length is what we require the widget to look at & not the total drive length but when we run the widget & select walking it returns the drive length. 

"Total_Drive_Length": -2.4117996572121734,
    "Total_Walk_Length": 0.6260365330626482,
    "Shape_Length": 1007.5084777768534

AndrewReynoldsDevon_0-1696848602503.png

 

When we use the web experience builder it works ok however we need to customize the standard directions widget as we're still on 10.8.1 of the enterprise portal. Can someone what to change in the Widget.JS file to amend this.

0 Replies