Важно

This feature is available in the Full MapKit SDK version

YMKMasstransitSection

class YMKMasstransitSection : NSObject

Contains information about an individual section of a mass transit YMKMasstransitRoute. The only fields that are always set are YMKMasstransitSection::metadata.YMKMasstransitSectionMetadata::weight, YMKMasstransitSection::geometry and YMKMasstransitSection::metadata.YMKMasstransitSectionMetadata::data.

Summary

Class methods

 init(metadata: YMKMasstransitSectionMetadata,
      geometry: YMKSubpolyline,
         stops: [YMKMasstransitRouteStop],
      rideLegs: [YMKSubpolyline])

Properties

var metadataYMKMasstransitSectionMetadata { get }
General information about a section of a route

var geometryYMKSubpolyline { get }
Geometry of the section as a fragment of a YMKMasstransitRoute polyline

var stops: [YMKMasstransitRouteStop] { get }
Vector of stops along the route

var rideLegs: [YMKSubpolyline] { get }
Vector of polylines each connecting two consecutive stops

Class methods

init(metadata:geometry:stops:rideLegs:)

 init(metadata: YMKMasstransitSectionMetadata,
      geometry: YMKSubpolyline,
         stops: [YMKMasstransitRouteStop],
      rideLegs: [YMKSubpolyline])


Properties

metadata

var metadata: YMKMasstransitSectionMetadata { get }

General information about a section of a route.


geometry

var geometry: YMKSubpolyline { get }

Geometry of the section as a fragment of a YMKMasstransitRoute polyline.


stops

var stops: [YMKMasstransitRouteStop] { get }

Vector of stops along the route. The first stop in the vector is the stop for boarding the transport, and the last stop in the vector is the stop for exiting the transport.


rideLegs

var rideLegs: [YMKSubpolyline] { get }

Vector of polylines each connecting two consecutive stops. This vector is only filled for mass transit ride sections, so this geometry represents a part of the mass transit thread geometry between two stops.


Предыдущая