Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitElevationData

class MMKMasstransitElevationData : NSObject

Information of elevation gain in loss in a fitness section

Summary

Class methods

 init(totalAscent: MMKLocalizedValue,
     totalDescent: MMKLocalizedValue,
            steps: MMKLocalizedValue?,
     kilocalories: MMKLocalizedValue,
  inclineSections: [MMKMasstransitInclineSection],
 elevationSegments: [MMKMasstransitElevationPoint])

Properties

var totalAscentMMKLocalizedValue { get }
Total ascent in meters

var totalDescentMMKLocalizedValue { get }
Total descent in meters

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

Optional field, can be nil

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

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

var elevationSegments: [MMKMasstransitElevationPoint] { get }
List of elevation for each point of the section polyline

Class methods

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

 init(totalAscent: MMKLocalizedValue,
     totalDescent: MMKLocalizedValue,
            steps: MMKLocalizedValue?,
     kilocalories: MMKLocalizedValue,
  inclineSections: [MMKMasstransitInclineSection],
 elevationSegments: [MMKMasstransitElevationPoint])


Properties

totalAscent

var totalAscent: MMKLocalizedValue { get }

Total ascent in meters


totalDescent

var totalDescent: MMKLocalizedValue { get }

Total descent in meters


steps

var steps: MMKLocalizedValue? { get }

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

Optional field, can be nil.


kilocalories

var kilocalories: MMKLocalizedValue { get }

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


inclineSections

var inclineSections: [MMKMasstransitInclineSection] { get }

List of sections with notable incline


elevationSegments

var elevationSegments: [MMKMasstransitElevationPoint] { get }

List of elevation for each point of the section polyline