The Esri Community
Services & Programs
GeoNet Resource Hub
to create and rate content, and to follow, bookmark, and share content with other members.
How do you calculate Route Directness?
Discussion created by
on Oct 2, 2012
on Oct 3, 2012 by jsandhu-esristaff
Show 0 Likes
I have a pedestrian network and am trying to calculate the ratio of route distance to straight-line distance for two selected points before and after a pedestrian improvement.
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Oct 3, 2012 10:15 AM
You can solve the route with options of outputting either a true shape or straight line.
So you can add two double fields to your output route line sub class called routelength and straightlength.
Solve the route with true shape and then use the field calculator to calculate the geometry (length) for the routelength field and then change the route property to output straight line and then use the field calculator to calculate the geometry (length) for the straightlength.
Make sure you are in a projected view (not geographic coordinates) for the field calculator/calculate geomtry option to work for computing the lenght of the lines.
Show 0 Likes
Retrieving data ...
Can you edit a repeat of an already submitted record?
Simple python tool for WKT extraction- diagnosing error?
Allow access to the organization through HTTPS only
Set Image in Popup?
Issues with on premise content in Microsoft Edge Browser?