TrafficSignal class
Identifies the presence and the location of traffic lights at an intersection
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors.
Related APIs may change for new releases without a deprecation process.
Constructors
- TrafficSignal(int offsetInMeters, TravelDirection travelDirection)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- offsetInMeters ↔ int
-
The offset of the traffic signal in meters from the beginning of the segment in positive direction.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signalLocations
↔ List<
TrafficSignalLocation> -
The location information of the traffic lights.
An empty list will be returned when signal location is unspecified/unknown.
getter/setter pair
- travelDirection ↔ TravelDirection
-
Segment direction which the traffic signal is applied.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited