YMKMasstransitFitness

Важно

This feature is available in the Full MapKit SDK version

@interface YMKMasstransitFitness : NSObject

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

Summary

Class methods

+ (nonnull YMKMasstransitFitness *)fitnessWithType:( YMKMasstransitFitnessType)type
                                     constructions:(nonnull NSArray<YMKMasstransitConstructionSegment *> *)constructions
                                 restrictedEntries:(nonnull NSArray<YMKRestrictedEntry *> *)restrictedEntries
                                         viaPoints:(nonnull NSArray<YMKPolylinePosition *> *)viaPoints
                                       annotations:(nonnull NSArray<YMKMasstransitAnnotation *> *)annotations
                                      trafficTypes:(nonnull NSArray<YMKMasstransitTrafficTypeSegment *> *)trafficTypes
                                     elevationData:(nullable YMKMasstransitElevationData *)elevationData
                                    indoorSegments:(nonnull NSArray<YMKMasstransitIndoorSegment *> *)indoorSegments;

Properties

@property (nonatomic, readonly) YMKMasstransitFitnessType type;

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

Compressed information about constructions along the path

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

List of restricted entries with their coordinates along the path

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

List of via points on the path

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

List of annotations on the path

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

List of traffic types on path

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

Information on elevation gain and loss in a fitness section

Optional field, can be nil

@property (nonatomic, readonly, nonnull)
    NSArray<YMKMasstransitIndoorSegment *> *indoorSegments;

List of indoor segments (levels or connectors) on path

Class methods

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

+ (nonnull YMKMasstransitFitness *)fitnessWithType:( YMKMasstransitFitnessType)type
                                     constructions:(nonnull NSArray<YMKMasstransitConstructionSegment *> *)constructions
                                 restrictedEntries:(nonnull NSArray<YMKRestrictedEntry *> *)restrictedEntries
                                         viaPoints:(nonnull NSArray<YMKPolylinePosition *> *)viaPoints
                                       annotations:(nonnull NSArray<YMKMasstransitAnnotation *> *)annotations
                                      trafficTypes:(nonnull NSArray<YMKMasstransitTrafficTypeSegment *> *)trafficTypes
                                     elevationData:(nullable YMKMasstransitElevationData *)elevationData
                                    indoorSegments:(nonnull NSArray<YMKMasstransitIndoorSegment *> *)indoorSegments;


Properties

type

@property (nonatomic, readonly) YMKMasstransitFitnessType type;


constructions

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

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


restrictedEntries

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

List of restricted entries with their coordinates along the path.


viaPoints

@property (nonatomic, readonly, nonnull)
    NSArray<YMKPolylinePosition *> *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<YMKMasstransitAnnotation *> *annotations;

List of annotations on the path.


trafficTypes

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

List of traffic types on path


elevationData

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

Information on elevation gain and loss in a fitness section

Optional field, can be nil.


indoorSegments

@property (nonatomic, readonly, nonnull)
    NSArray<YMKMasstransitIndoorSegment *> *indoorSegments;

List of indoor segments (levels or connectors) on path. Compressed information about levels along the path. YMKMasstransitIndoorSegment::subpolyline fields of all indoor segments cover only the indoor geometry, it does not cover outdoor parts.


Следующая