Важно

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

Properties

var metadataYMKMasstransitRouteMetadata { get }
General route information

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

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

var geometryYMKPolyline { get }
Polyline of the entire route

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

Instance methods

distanceBetweenPolylinePositionsWith(from:to:)

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

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.


Предыдущая
Следующая