ltn
0.1.0
Module turn_
restrictions
Module Items
Structs
Functions
In ltn::
logic
ltn
::
logic
Module
turn_restrictions
Copy item path
Source
Structs
§
Focused
Turns
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.