Class YMKMasstransitSection
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.
Class Methods
Properties
geometry | Geometry of the section as a fragment of a YMKMasstransitRoute polyline. |
metadata | General information about a section of a route. |
rideLegs | Vector of polylines each connecting two consecutive stops. |
stops | Vector of stops along the route. |
geometry | Geometry of the section as a fragment of a YMKMasstransitRoute polyline. |
metadata | General information about a section of a route. |
rideLegs | Vector of polylines each connecting two consecutive stops. |
stops | Vector of stops along the route. |
Method Detail
+sectionWithMetadata:geometry:stops:rideLegs:
+ (nonnull YMKMasstransitSection *)sectionWithMetadata:(nonnull YMKMasstransitSectionMetadata *)metadata
geometry:(nonnull YMKSubpolyline *)geometry
stops:(nonnull NSArray< YMKMasstransitRouteStop * > *)stops
rideLegs:(nonnull NSArray< YMKSubpolyline * > *)rideLegs
Property Detail
geometry
(assign, readonly) YMKSubpolyline * geometry
Geometry of the section as a fragment of a YMKMasstransitRoute polyline.
metadata
(assign, readonly) YMKMasstransitSectionMetadata * metadata
General information about a section of a route.
rideLegs
(assign, readonly) NSArray< YMKSubpolyline * > * rideLegs
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.
stops
(assign, readonly) NSArray< YMKMasstransitRouteStop * > * stops
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.