You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, there seems to be a significant difference between the distance calculated from the legs geometries (which is the distance returned in the output) vs. the one provided by R5 output. For example, the route from farroupilha_park to itself, which in the example above is 42 meters long, in the R5 output is 33 meters long.
Had we traveled a 33 meters trip at 1.3 m/s (4.68 km/h), we would be finished in 25 seconds, which is around 0.4 minutes (which is exactly the result we have when we run detailed_itineraries() with walk_speed = 4.68 km/h):
The duration calculated in detailed_itineraries() is correct.
Calculating the distance from the shapes result in different distances estimates, when compared to the "original" R5 distances. Why? How does R5 calculates distances?
As far as I understand, we would be able to change the "off-road" speed to the one we want it to be if the variable wasn't final, but we currently can't.
The trip from farroupilha_park to itself apart, all the other speeds are lower than the one specified. Since the off-road speed is much higher than the one specified, if that was the only thing affecting the speed, our speeds would be on average higher than the one specified. So either we are regularly underestimating distances, or there are even more things affecting the calculated speed here.
PS: The network was calculated with no elevation info, so that's not the problem here.
The text was updated successfully, but these errors were encountered:
Code:
Created on 2022-06-09 by the reprex package (v2.0.1)
Expected speed: 2km/h
Got: Usually 1.7~, but a big 4.2 as well
Some things might explain the difference. First, R5 uses a fixed "off-road" speed (from the specified point to the snapped location) of 1.3 m/s, which we cannot change in r5r: https://github.com/conveyal/r5/blob/ccc302f391968852b13477c01045e8b182dcf95b/src/main/java/com/conveyal/r5/streets/LinkedPointSet.java#L46
Also, there seems to be a significant difference between the distance calculated from the legs geometries (which is the
distance
returned in the output) vs. the one provided by R5 output. For example, the route from farroupilha_park to itself, which in the example above is 42 meters long, in the R5 output is 33 meters long.Had we traveled a 33 meters trip at 1.3 m/s (4.68 km/h), we would be finished in 25 seconds, which is around 0.4 minutes (which is exactly the result we have when we run detailed_itineraries() with walk_speed = 4.68 km/h):
So things to take away from this issue:
detailed_itineraries()
is correct.final
, but we currently can't.PS: The network was calculated with no elevation info, so that's not the problem here.
The text was updated successfully, but these errors were encountered: