Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitAnnotation

@interface MMKMasstransitAnnotation : NSObject

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

Summary

Class methods

+ (nonnull MMKMasstransitAnnotation *)annotationWithPosition:(nonnull MMKPolylinePosition *)position
                                                      action:(nullable NSNumber *)action
                                                    landmark:(nullable NSNumber *)landmark
                                                     toponym:(nullable MMKMasstransitToponym *)toponym;

Properties

@property (nonatomic, readonly, nonnull) MMKPolylinePosition *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) MMKMasstransitToponym *toponym;
The toponym of the location

Class methods

annotationWithPosition:action:landmark:toponym:

+ (nonnull MMKMasstransitAnnotation *)annotationWithPosition:(nonnull MMKPolylinePosition *)position
                                                      action:(nullable NSNumber *)action
                                                    landmark:(nullable NSNumber *)landmark
                                                     toponym:(nullable MMKMasstransitToponym *)toponym;


Properties

position

@property (nonatomic, readonly, nonnull) MMKPolylinePosition *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) MMKMasstransitToponym *toponym;

The toponym of the location.

Optional field, can be nil.