City Based Parking and Routing System API Documentation

PrecedenceIntersection.GeneratePrecendce Method (RoadPosition, RoadPosition)

Generates a matrix of precedence rules for the specified intersection.

public void GeneratePrecendce(
   RoadPosition posA,
   RoadPosition posB
);

Parameters

posA
The first IRoad that has precendece.
posB
The second IRoad that has precedence.

Remarks

The precedence matrix is filled with three different values, there meaning is described below: 0: The road does not have to give precedence to the other road. 1: The road has to give precedence to the other road. 2: The current road only has to give precedence to the other road if a vehicle on the road wants to make a left turn. This function ignores the road type values of the roads.

See Also

PrecedenceIntersection Class | CBPRS.Infrastructure Namespace | PrecedenceIntersection.GeneratePrecendce Overload List