Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitElevationData

@interface MMKMasstransitElevationData : NSObject

Information of elevation gain in loss in a fitness section

Summary

Class methods

+ (nonnull MMKMasstransitElevationData *)elevationDataWithTotalAscent:(nonnull MMKLocalizedValue *)totalAscent
                                                         totalDescent:(nonnull MMKLocalizedValue *)totalDescent
                                                                steps:(nullable MMKLocalizedValue *)steps
                                                         kilocalories:(nonnull MMKLocalizedValue *)kilocalories
                                                      inclineSections:(nonnull NSArray<MMKMasstransitInclineSection *> *)inclineSections
                                                    elevationSegments:(nonnull NSArray<MMKMasstransitElevationPoint *> *)elevationSegments;

Properties

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *totalAscent;
Total ascent in meters

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *totalDescent;
Total descent in meters

@property (nonatomic, readonly, nullable) MMKLocalizedValue *steps;
The number of steps required to cover the distance for an average person

Optional field, can be nil

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *kilocalories;
The number of kilocalories consumed by an average person to cover the distance

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitInclineSection *> *inclineSections;

List of sections with notable incline

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitElevationPoint *> *elevationSegments;

List of elevation for each point of the section polyline

Class methods

elevationDataWithTotalAscent:totalDescent:steps:kilocalories:inclineSections:elevationSegments:

+ (nonnull MMKMasstransitElevationData *)elevationDataWithTotalAscent:(nonnull MMKLocalizedValue *)totalAscent
                                                         totalDescent:(nonnull MMKLocalizedValue *)totalDescent
                                                                steps:(nullable MMKLocalizedValue *)steps
                                                         kilocalories:(nonnull MMKLocalizedValue *)kilocalories
                                                      inclineSections:(nonnull NSArray<MMKMasstransitInclineSection *> *)inclineSections
                                                    elevationSegments:(nonnull NSArray<MMKMasstransitElevationPoint *> *)elevationSegments;


Properties

totalAscent

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *totalAscent;

Total ascent in meters


totalDescent

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *totalDescent;

Total descent in meters


steps

@property (nonatomic, readonly, nullable) MMKLocalizedValue *steps;

The number of steps required to cover the distance for an average person

Optional field, can be nil.


kilocalories

@property (nonatomic, readonly, nonnull) MMKLocalizedValue *kilocalories;

The number of kilocalories consumed by an average person to cover the distance


inclineSections

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitInclineSection *> *inclineSections;

List of sections with notable incline


elevationSegments

@property (nonatomic, readonly, nonnull)
    NSArray<MMKMasstransitElevationPoint *> *elevationSegments;

List of elevation for each point of the section polyline