Warning

This feature is available in the Full MapKit SDK version

YMKDrivingEvent

@interface YMKDrivingEvent : NSObject

Road event.

Summary

Class methods

+ (nonnull YMKDrivingEvent *)eventWithPolylinePosition:(nonnull YMKPolylinePosition *)polylinePosition
                                               eventId:(nonnull NSString *)eventId
                                       descriptionText:(nullable NSString *)descriptionText
                                                  tags:(nonnull NSArray<NSNumber *> *)tags
                                              location:(nonnull YMKPoint *)location
                                            speedLimit:(nullable NSNumber *)speedLimit;

Properties

@property (nonatomic, readonly, nonnull) YMKPolylinePosition *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) YMKPoint *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 YMKDrivingEvent *)eventWithPolylinePosition:(nonnull YMKPolylinePosition *)polylinePosition
                                               eventId:(nonnull NSString *)eventId
                                       descriptionText:(nullable NSString *)descriptionText
                                                  tags:(nonnull NSArray<NSNumber *> *)tags
                                              location:(nonnull YMKPoint *)location
                                            speedLimit:(nullable NSNumber *)speedLimit;


Properties

polylinePosition

@property (nonatomic, readonly, nonnull) YMKPolylinePosition *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) YMKPoint *location;

The location of the road event.


speedLimit

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

The speed limit on the road.

Optional field, can be nil.