RouteAlert
public struct RouteAlert
RouteAlert
encapsulates information about various incoming events. Common attributes like location, distance to the event, length and other is provided for each POI, while specific meta data is supplied via alert
property.
-
Enumeration used for encapsulating additional details to describe specific type of alert
See moreDeclaration
Swift
public enum Alert
-
Alert data with specific info. Contents depend on exact alert type.
Declaration
Swift
public let alert: Alert
-
Distance to route alert relative to start of the route, meters.
Declaration
Swift
public let distance: CLLocationDistance
-
Distance from current position to alert, meters.
This value can be negative if it is a spanned alert and we are somewhere in the middle of it.
Declaration
Swift
public let distanceToStart: CLLocationDistance
-
Length of the alert info.
This value will be non-null for composite route alerts
Declaration
Swift
public let length: CLLocationDistance?
-
Coordinate of route alert beginning point
Declaration
Swift
public let beginCoordinate: CLLocationCoordinate2D
-
Coordinate of route alert ending point
Declaration
Swift
public let endCoordinate: CLLocationCoordinate2D
-
Segment index in corresponding
Route.shape
where this alert begins.Declaration
Swift
public let beginSegmentIndex: UInt32
-
Segment index in corresponding
Route.shape
where this alert ends.Declaration
Swift
public let endSegmentIndex: UInt32