MapKit Mobile SDK

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,
                                            to: MMKPolylinePosition) -> Double
Return distance between two polyline positions

Properties

var metadataMMKMasstransitRouteMetadata { get }
General route information

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

var sections: [MMKMasstransitSection] { get }
Vector of sections of the route

var geometryMMKPolyline { get }
Polyline of the entire route

var uriMetadataMMKUriObjectMetadata { get }
Route URI, which can be used with MMKMasstransitRouter to fetch additional information about the route or can be bookmarked for future reference

Instance methods

distanceBetweenPolylinePositionsWith(from:to:)

func distanceBetweenPolylinePositionsWith(from: MMKPolylinePosition,
                                            to: MMKPolylinePosition) -> Double

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.