Warning
This feature is available in the Full MapKit SDK version
YMKMasstransitRoute
class YMKMasstransitRoute : NSObject |
Contains information about a route constructed by the mass transit router.
Summary
Instance methods
func distanceBetweenPolylinePositionsWith(from: YMKPolylinePosition, |
Properties
var metadata: YMKMasstransitRouteMetadata { get } |
var wayPoints: [YMKMasstransitWayPoint] { get } |
var sections: [YMKMasstransitSection] { get } |
var geometry: YMKPolyline { get } |
var uriMetadata: YMKUriObjectMetadata { get } |
Instance methods
distanceBetweenPolylinePositionsWith(from:to:)
func distanceBetweenPolylinePositionsWith(from: YMKPolylinePosition, |
Return distance between two polyline positions.
Properties
metadata
var metadata: YMKMasstransitRouteMetadata { get } |
General route information.
wayPoints
var wayPoints: [YMKMasstransitWayPoint] { get } |
List of route waypoints. See YMKMasstransitWayPoint for details
sections
var sections: [YMKMasstransitSection] { get } |
Vector of sections of the route.
geometry
var geometry: YMKPolyline { get } |
Polyline of the entire route.
uriMetadata
var uriMetadata: YMKUriObjectMetadata { get } |
Route URI, which can be used with YMKMasstransitRouter to fetch additional information about the route or can be bookmarked for future reference.