Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitFitness

@interface MMKMasstransitFitness : NSObject

Represent a section where we have to move by ourself (like pedestrian, or by bicycle and scooter)

Summary

Class methods

+ (nonnull MMKMasstransitFitness *)fitnessWithType:( MMKMasstransitFitnessType)type
                                     constructions:(nonnull NSArray<MMKMasstransitConstructionSegment *> *)constructions
                                 restrictedEntries:(nonnull NSArray<MMKRestrictedEntry *> *)restrictedEntries
                                         viaPoints:(nonnull NSArray<MMKPolylinePosition *> *)viaPoints
                                       annotations:(nonnull NSArray<MMKMasstransitAnnotation *> *)annotations
                                      trafficTypes:(nonnull NSArray<MMKMasstransitTrafficTypeSegment *> *)trafficTypes
                                     elevationData:(nullable MMKMasstransitElevationData *)elevationData;

Properties

@property (nonatomic, readonly) MMKMasstransitFitnessType type;
Undocumented

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitConstructionSegment *> *constructions;

Compressed information about constructions along the path

@property (nonatomic, readonly, nonnull)
    NSArray<MMKRestrictedEntry *> *restrictedEntries;

List of restricted entries with their coordinates along the path

@property (nonatomic, readonly, nonnull)
    NSArray<MMKPolylinePosition *> *viaPoints;

List of via points on the path

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitAnnotation *> *annotations;

List of annotations on the path

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitTrafficTypeSegment *> *trafficTypes;

List of traffic types on path

@property (nonatomic, readonly, nullable)
    MMKMasstransitElevationData *elevationData;

Information on elevation gain and loss in a fitness section

Optional field, can be nil

Class methods

fitnessWithType:constructions:restrictedEntries:viaPoints:annotations:trafficTypes:elevationData:

+ (nonnull MMKMasstransitFitness *)fitnessWithType:( MMKMasstransitFitnessType)type
                                     constructions:(nonnull NSArray<MMKMasstransitConstructionSegment *> *)constructions
                                 restrictedEntries:(nonnull NSArray<MMKRestrictedEntry *> *)restrictedEntries
                                         viaPoints:(nonnull NSArray<MMKPolylinePosition *> *)viaPoints
                                       annotations:(nonnull NSArray<MMKMasstransitAnnotation *> *)annotations
                                      trafficTypes:(nonnull NSArray<MMKMasstransitTrafficTypeSegment *> *)trafficTypes
                                     elevationData:(nullable MMKMasstransitElevationData *)elevationData;


Properties

type

@property (nonatomic, readonly) MMKMasstransitFitnessType type;

Undocumented


constructions

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitConstructionSegment *> *constructions;

Compressed information about constructions along the path. MMKMasstransitConstructionSegment::subpolyline fields of all segments cover the entire geometry of corresponding section".


restrictedEntries

@property (nonatomic, readonly, nonnull)
    NSArray<MMKRestrictedEntry *> *restrictedEntries;

List of restricted entries with their coordinates along the path.


viaPoints

@property (nonatomic, readonly, nonnull)
    NSArray<MMKPolylinePosition *> *viaPoints;

List of via points on the path. A via point is described by the index of the point in the route geometry polyline.


annotations

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitAnnotation *> *annotations;

List of annotations on the path.


trafficTypes

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitTrafficTypeSegment *> *trafficTypes;

List of traffic types on path


elevationData

@property (nonatomic, readonly, nullable)
    MMKMasstransitElevationData *elevationData;

Information on elevation gain and loss in a fitness section

Optional field, can be nil.