TrafficSignal
public struct TrafficSignal
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.
-
The offset of the traffic signal in meters from the beginning of the segment in positive direction.
Declaration
Swift
public var offsetInMeters: Int32 -
Segment direction which the traffic signal is applied.
Declaration
Swift
public var travelDirection: TravelDirection -
The location information of the traffic lights. An empty list will be returned when signal location is unspecified/unknown.
Declaration
Swift
public var signalLocations: [TrafficSignalLocation] -
Creates a new instance.
Declaration
Swift
public init(offsetInMeters: Int32, travelDirection: TravelDirection, signalLocations: [TrafficSignalLocation] = [])