Важно

This feature is available in the Full MapKit SDK version

YMKMasstransitRouteMetadata

class YMKMasstransitRouteMetadata : NSObject, YMKBaseMetadata

Contains information associated with a route constructed by the mass transit router.

Summary

Class methods

 init(weight: YMKMasstransitWeight,
    settings: YMKMasstransitRouteSettings?,
  estimation: YMKMasstransitTravelEstimation?,
   wayPoints: [YMKMasstransitWayPoint],
     routeId: String?,
       flags: YMKMasstransitFlags?,
 comfortTags: [NSNumber])

Properties

var weightYMKMasstransitWeight { get }
Contains the route time, distance of the walking part, and the number of transfers

var settingsYMKMasstransitRouteSettings? { get }
Route settings that were used by the mass transit router

var estimationYMKMasstransitTravelEstimation? { get }
Arrival and departure time estimations for time-dependent routes

var wayPoints: [YMKMasstransitWayPoint] { get }
List of route waypoints

var routeId: String? { get }
Unique route id

var flagsYMKMasstransitFlags? { get }
Flags which contains route properties

Optional field, can be nil

var comfortTags: [NSNumber] { get }
Undocumented

Class methods

init(weight:settings:estimation:wayPoints:routeId:flags:comfortTags:)

 init(weight: YMKMasstransitWeight,
    settings: YMKMasstransitRouteSettings?,
  estimation: YMKMasstransitTravelEstimation?,
   wayPoints: [YMKMasstransitWayPoint],
     routeId: String?,
       flags: YMKMasstransitFlags?,
 comfortTags: [NSNumber])


Properties

weight

var weight: YMKMasstransitWeight { get }

Contains the route time, distance of the walking part, and the number of transfers.


settings

var settings: YMKMasstransitRouteSettings? { get }

Route settings that were used by the mass transit router.

Optional field, can be nil.


estimation

var estimation: YMKMasstransitTravelEstimation? { get }

Arrival and departure time estimations for time-dependent routes.

Optional field, can be nil.


wayPoints

var wayPoints: [YMKMasstransitWayPoint] { get }

List of route waypoints. See YMKMasstransitWayPoint for details


routeId

var routeId: String? { get }

Unique route id.

Optional field, can be nil.


flags

var flags: YMKMasstransitFlags? { get }

Flags which contains route properties

Optional field, can be nil.


comfortTags

var comfortTags: [NSNumber] { get }

Undocumented


Предыдущая