City Based Parking and Routing System API Documentation

Intersection.GenerateRoutes Method (RoadPosition, DirectionTypes, Lane, Int32, Int32)

Generates the InternalRoute's for the intersection.

protected void GenerateRoutes(
   RoadPosition position,
   DirectionTypes direction,
   Lane inbound,
   int inboundlanes,
   int otherlanes
);

Parameters

position
The RoadPosition of the road for which routes are generated.
direction
The 'normalized' Direction of the inbound lane.
inbound
The Lane for which the routes are generated.
inboundlanes
The number of lanes that are inbound on the intersection and allow vehicle to turn in the same direction.
otherlanes
The number of lanes that are inbound on the intersection but that do not share the same direction.

Remarks

The otherlanes parameter functions differently than might be suggested at first. The best description could be the number of lanes that have a different direction than the inbound lane but a lower id number. Therefore when the direction is right the otherlanes parameter is always zero. when the direction is left the otherlanes parmeter is (lanes turning to the right + lanes going ahead).

See Also

Intersection Class | CBPRS.Infrastructure Namespace | Intersection.GenerateRoutes Overload List