Module turn_restrictions

Source

Structs§

FocusedTurns
An attempt to standardise language around turn restrictions. NOTE AT PRESENT THIS IS ASPIRATIONAL - DO NOT ASSUME THAT THE RELEVANT CODE ADHERES TO THESE RULES Future refactoring should migrate to these conventions.

Functions§

hull_around_focused_turns 🔒
is_road_drivable_from_i 🔒
possible_destination_roads
Returns a HashSet of all roads which are connected by driving from RoadID. This accounts for oneway restrictions, but not turn restrictions. eg:
restricted_destination_roads
Returns all roads that are possible destinations from the given “from_road” where the turn is currently prohibited by a turn restriction.
verify_intersection 🔒
checks that an Intersection ID is connected to a RoadID. Returns true if connected, false otherwise.