Warning

This feature is available in the Full MapKit SDK version

YMKMasstransitAnnotation

@interface YMKMasstransitAnnotation : NSObject

Contains info about actions on part of route. Either action or landmark should be non-empty.

Summary

Class methods

+ (nonnull YMKMasstransitAnnotation *)annotationWithPosition:(nonnull YMKPolylinePosition *)position
                                                      action:(nullable NSNumber *)action
                                                    landmark:(nullable NSNumber *)landmark
                                                     toponym:(nullable YMKMasstransitToponym *)toponym;

Properties

@property (nonatomic, readonly, nonnull) YMKPolylinePosition *position;
Position of annotation on part of route

@property (nonatomic, readonly, nullable) NSNumber *action;
Action

Optional field, can be nil

@property (nonatomic, readonly, nullable) NSNumber *landmark;
Landmark

Optional field, can be nil

@property (nonatomic, readonly, nullable) YMKMasstransitToponym *toponym;
The toponym of the location

Class methods

annotationWithPosition:action:landmark:toponym:

+ (nonnull YMKMasstransitAnnotation *)annotationWithPosition:(nonnull YMKPolylinePosition *)position
                                                      action:(nullable NSNumber *)action
                                                    landmark:(nullable NSNumber *)landmark
                                                     toponym:(nullable YMKMasstransitToponym *)toponym;


Properties

position

@property (nonatomic, readonly, nonnull) YMKPolylinePosition *position;

Position of annotation on part of route


action

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

Action

Optional field, can be nil.


landmark

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

Landmark

Optional field, can be nil.


toponym

@property (nonatomic, readonly, nullable) YMKMasstransitToponym *toponym;

The toponym of the location.

Optional field, can be nil.