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 and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change 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] = [])