Warning

This feature is available in the Full MapKit SDK version

MMKDrivingEvent

@interface MMKDrivingEvent : NSObject

Road event.

Summary

Class methods

+ (nonnull MMKDrivingEvent *)eventWithPolylinePosition:(nonnull MMKPolylinePosition *)polylinePosition
                                               eventId:(nonnull NSString *)eventId
                                       descriptionText:(nullable NSString *)descriptionText
                                                  tags:(nonnull NSArray<NSNumber *> *)tags
                                              location:(nonnull MMKPoint *)location
                                            speedLimit:(nullable NSNumber *)speedLimit;

Properties

@property (nonatomic, readonly, nonnull) MMKPolylinePosition *polylinePosition;
The position of the polyline

@property (nonatomic, readonly, nonnull) NSString *eventId;
The unique ID of the event

@property (nonatomic, readonly, nullable) NSString *descriptionText;
The description of the event

@property (nonatomic, readonly, nonnull) NSArray<NSNumber *> *tags;
The types of the road event

@property (nonatomic, readonly, nonnull) MMKPoint *location;
The location of the road event

@property (nonatomic, readonly, nullable) NSNumber *speedLimit;
The speed limit on the road

Class methods

eventWithPolylinePosition:eventId:descriptionText:tags:location:speedLimit:

+ (nonnull MMKDrivingEvent *)eventWithPolylinePosition:(nonnull MMKPolylinePosition *)polylinePosition
                                               eventId:(nonnull NSString *)eventId
                                       descriptionText:(nullable NSString *)descriptionText
                                                  tags:(nonnull NSArray<NSNumber *> *)tags
                                              location:(nonnull MMKPoint *)location
                                            speedLimit:(nullable NSNumber *)speedLimit;


Properties

polylinePosition

@property (nonatomic, readonly, nonnull) MMKPolylinePosition *polylinePosition;

The position of the polyline.


eventId

@property (nonatomic, readonly, nonnull) NSString *eventId;

The unique ID of the event.


descriptionText

@property (nonatomic, readonly, nullable) NSString *descriptionText;

The description of the event.

Optional field, can be nil.


tags

@property (nonatomic, readonly, nonnull) NSArray<NSNumber *> *tags;

The types of the road event.


location

@property (nonatomic, readonly, nonnull) MMKPoint *location;

The location of the road event.


speedLimit

@property (nonatomic, readonly, nullable) NSNumber *speedLimit;

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

Optional field, can be nil.