Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitSection

class MMKMasstransitSection : NSObject

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

Summary

Class methods

 init(metadata: MMKMasstransitSectionMetadata,
      geometry: MMKSubpolyline,
         stops: [MMKMasstransitRouteStop],
      rideLegs: [MMKSubpolyline])

Properties

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

var geometryMMKSubpolyline { get }
Geometry of the section as a fragment of a MMKMasstransitRoute polyline

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

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

Class methods

init(metadata:geometry:stops:rideLegs:)

 init(metadata: MMKMasstransitSectionMetadata,
      geometry: MMKSubpolyline,
         stops: [MMKMasstransitRouteStop],
      rideLegs: [MMKSubpolyline])


Properties

metadata

var metadata: MMKMasstransitSectionMetadata { get }

General information about a section of a route.


geometry

var geometry: MMKSubpolyline { get }

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


stops

var stops: [MMKMasstransitRouteStop] { 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: [MMKSubpolyline] { 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.