MapKit Mobile SDK

Warning

This feature is available in the Full MapKit SDK version

MMKDrivingEvent

class MMKDrivingEvent : NSObject

Road event.

Summary

Class methods

 init(polylinePosition: MMKPolylinePosition,
               eventId: String,
       descriptionText: String?,
                  tags: [NSNumber],
              location: MMKPoint,
            speedLimit: NSNumber?)

Properties

var polylinePositionMMKPolylinePosition { get }
The position of the polyline

var eventId: String { get }
The unique ID of the event

var descriptionText: String? { get }
The description of the event

var tags: [NSNumber] { get }
The types of the road event

var locationMMKPoint { get }
The location of the road event

var speedLimit: NSNumber? { get }
The speed limit on the road

Class methods

init(polylinePosition:eventId:descriptionText:tags:location:speedLimit:)

 init(polylinePosition: MMKPolylinePosition,
               eventId: String,
       descriptionText: String?,
                  tags: [NSNumber],
              location: MMKPoint,
            speedLimit: NSNumber?)


Properties

polylinePosition

var polylinePosition: MMKPolylinePosition { get }

The position of the polyline.


eventId

var eventId: String { get }

The unique ID of the event.


descriptionText

var descriptionText: String? { get }

The description of the event.

Optional field, can be nil.


tags

var tags: [NSNumber] { get }

The types of the road event.


location

var location: MMKPoint { get }

The location of the road event.


speedLimit

var speedLimit: NSNumber? { get }

The speed limit on the road. Valid only for cameras.

Optional field, can be nil.