YMKMasstransitFitness

Важно

This feature is available in the Full MapKit SDK version

class YMKMasstransitFitness : NSObject

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

Summary

Class methods

 init(type: YMKMasstransitFitnessType,
 constructions: [YMKMasstransitConstructionSegment],
 restrictedEntries: [YMKRestrictedEntry],
 viaPoints: [YMKPolylinePosition],
 annotations: [YMKMasstransitAnnotation],
 trafficTypes: [YMKMasstransitTrafficTypeSegment],
 elevationData: YMKMasstransitElevationData?,
 indoorSegments: [YMKMasstransitIndoorSegment])

Properties

var typeYMKMasstransitFitnessType { get }

var constructions: [YMKMasstransitConstructionSegment] { get }
Compressed information about constructions along the path

var restrictedEntries: [YMKRestrictedEntry] { get }
List of restricted entries with their coordinates along the path

var viaPoints: [YMKPolylinePosition] { get }
List of via points on the path

var annotations: [YMKMasstransitAnnotation] { get }
List of annotations on the path

var trafficTypes: [YMKMasstransitTrafficTypeSegment] { get }
List of traffic types on path

var elevationDataYMKMasstransitElevationData? { get }
Information on elevation gain and loss in a fitness section

Optional field, can be nil

var indoorSegments: [YMKMasstransitIndoorSegment] { get }
List of indoor segments (levels or connectors) on path

Class methods

init(type:constructions:restrictedEntries:viaPoints:annotations:trafficTypes:elevationData:indoorSegments:)

 init(type: YMKMasstransitFitnessType,
 constructions: [YMKMasstransitConstructionSegment],
 restrictedEntries: [YMKRestrictedEntry],
 viaPoints: [YMKPolylinePosition],
 annotations: [YMKMasstransitAnnotation],
 trafficTypes: [YMKMasstransitTrafficTypeSegment],
 elevationData: YMKMasstransitElevationData?,
 indoorSegments: [YMKMasstransitIndoorSegment])


Properties

type

var type: YMKMasstransitFitnessType { get }


constructions

var constructions: [YMKMasstransitConstructionSegment] { get }

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


restrictedEntries

var restrictedEntries: [YMKRestrictedEntry] { get }

List of restricted entries with their coordinates along the path.


viaPoints

var viaPoints: [YMKPolylinePosition] { get }

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


annotations

var annotations: [YMKMasstransitAnnotation] { get }

List of annotations on the path.


trafficTypes

var trafficTypes: [YMKMasstransitTrafficTypeSegment] { get }

List of traffic types on path


elevationData

var elevationData: YMKMasstransitElevationData? { get }

Information on elevation gain and loss in a fitness section

Optional field, can be nil.


indoorSegments

var indoorSegments: [YMKMasstransitIndoorSegment] { get }

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.


Следующая