Checks if the turns through the specified node can be edited.
An id of the node to check edit permissions for.
true if all the segments going through the node allow connections to be edited.
an array of all the turns in the WME data model
An id of the turn to find.
turn with id, or null if not found in the WME data model
Get all turns from the segment
An id of the segment to find turns for.
all turns from the segment
Get all known turns through the node.
An id of the node to find turns for.
an array of all known turns through the node
Get all turns to the segment
An id of the segment to find turns for.
all turns to the segment
Determine if a turn is allowed between segments based on turn data
An id of the first segment to find the turn by.
An id of the node to find the turn by.
An id of the second segment to find the turn by.
true if a turn is allowed
Determine if a turn is allowed between segments based on directions
An id of the first segment to find the turn by.
An id of the node to find the turn by.
An id of the second segment to find the turn by.
true if a turn is allowed
Sets the number of lanes for segment turns in a given direction. Min is 0 and max is 32.
The new turns lane count.
The direction of the segment where the laneCount is to be updated.
An id of the segment the turns belong to.
Sets lane guidances for a given turn.
laneIndexes enables the turn for the lanes at the provided indexes.
When a lane index is not provided, the turn is disabled instead.
For example, laneIndexes: [1, 2] enables the turn for lanes 2 and 3 but disables for lane 1.
Min index is 0, max is laneCount - 1.
An array of indexes of the lanes to be enabled.
An id of the turn.
Update turn by id.
OptionalisAllowed?: booleanIf turn is allowed or not.
An id of the turn to update.
Methods for dealing with Turns.