Важно

This feature is available in the Full MapKit SDK version

YMKMasstransitElevationData

class YMKMasstransitElevationData : NSObject

Information of elevation gain in loss in a fitness section

Summary

Class methods

 init(totalAscent: YMKLocalizedValue,
     totalDescent: YMKLocalizedValue,
            steps: YMKLocalizedValue?,
     kilocalories: YMKLocalizedValue,
  inclineSections: [YMKMasstransitInclineSection],
 elevationSegments: [NSNumber])

Properties

var totalAscentYMKLocalizedValue { get }
Total ascent in meters

var totalDescentYMKLocalizedValue { get }
Total descent in meters

var stepsYMKLocalizedValue? { get }
The number of steps required to cover the distance for an average person

Optional field, can be nil

var kilocaloriesYMKLocalizedValue { get }
The number of kilocalories consumed by an average person to cover the distance

var inclineSections: [YMKMasstransitInclineSection] { get }
List of sections with notable incline

var elevationSegments: [NSNumber] { get }
List of elevation levels in meters for each segment of the route polyline

Class methods

init(totalAscent:totalDescent:steps:kilocalories:inclineSections:elevationSegments:)

 init(totalAscent: YMKLocalizedValue,
     totalDescent: YMKLocalizedValue,
            steps: YMKLocalizedValue?,
     kilocalories: YMKLocalizedValue,
  inclineSections: [YMKMasstransitInclineSection],
 elevationSegments: [NSNumber])


Properties

totalAscent

var totalAscent: YMKLocalizedValue { get }

Total ascent in meters


totalDescent

var totalDescent: YMKLocalizedValue { get }

Total descent in meters


steps

var steps: YMKLocalizedValue? { get }

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

Optional field, can be nil.


kilocalories

var kilocalories: YMKLocalizedValue { get }

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


inclineSections

var inclineSections: [YMKMasstransitInclineSection] { get }

List of sections with notable incline


elevationSegments

var elevationSegments: [NSNumber] { get }

List of elevation levels in meters for each segment of the route polyline


Следующая