City Based Parking and Routing System API Documentation

TrafficLightIntersection.GetTrafficLight Method 

Gets the traffic light signal status for the specified internal route.

public TrafficLight GetTrafficLight(
   InternalRoute route
);

Parameters

route
The internal route for which to retrieve the traffic light signal status.

Return Value

The traffic light signal status for the specified route.

Remarks

Vehicles should use the response of generated by the intersection to determine the light color! Only when yellow is significant should this function be queried.

Exceptions

Exception Type Condition
ArgumentException Thrown if the specified route is not part of the current intersection.

See Also

TrafficLightIntersection Class | CBPRS.Infrastructure Namespace