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
In our current generate_dataset function, we use the edge bearings generated from osnmx which computes the bearing from the origin node to the destination node. This is a good approximation but RouteE Compass allows us to specify a bearing for both the beginning and end of a road link. This is useful for computing the difference in angle between two links that might have significant curvature.
Imagine a (somewhat contrived) example where we have two links with curvature connected to each other like this:
If we just use the bearing between the start and end nodes, it will appear as if the vehicle is not turning at all between the two links but in reality the vehicle is making an ~90 degree turn.
In order to support this we should use the geometry from the link and then take the first two points in the linestring to compute the arrival_heading and the last two points in the linestring to compute the departure_heading.
The text was updated successfully, but these errors were encountered:
In our current
generate_dataset
function, we use the edge bearings generated from osnmx which computes the bearing from the origin node to the destination node. This is a good approximation but RouteE Compass allows us to specify a bearing for both the beginning and end of a road link. This is useful for computing the difference in angle between two links that might have significant curvature.Imagine a (somewhat contrived) example where we have two links with curvature connected to each other like this:
If we just use the bearing between the start and end nodes, it will appear as if the vehicle is not turning at all between the two links but in reality the vehicle is making an ~90 degree turn.
In order to support this we should use the geometry from the link and then take the first two points in the linestring to compute the
arrival_heading
and the last two points in the linestring to compute thedeparture_heading
.The text was updated successfully, but these errors were encountered: