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