Warning

This feature is available in the Full MapKit SDK version

YMKMasstransitRoute

@interface YMKMasstransitRoute : NSObject

Contains information about a route constructed by the mass transit router.

Summary

Instance methods

- (double)
    distanceBetweenPolylinePositionsWithFrom:(nonnull YMKPolylinePosition *)from
                                          to:(nonnull YMKPolylinePosition *)to;

Return distance between two polyline positions

Properties

@property (nonatomic, readonly, nonnull) YMKMasstransitRouteMetadata *metadata;
General route information

@property (nonatomic, readonly, nonnull)
    NSArray<YMKMasstransitWayPoint *> *wayPoints;

List of route waypoints

@property (nonatomic, readonly, nonnull)
    NSArray<YMKMasstransitSection *> *sections;

Vector of sections of the route

@property (nonatomic, readonly, nonnull) YMKPolyline *geometry;
Polyline of the entire route

@property (nonatomic, readonly, nonnull) YMKUriObjectMetadata *uriMetadata;
Route URI, which can be used with YMKMasstransitRouter to fetch additional information about the route or can be bookmarked for future reference

Instance methods

distanceBetweenPolylinePositionsWithFrom:to:

- (double)
    distanceBetweenPolylinePositionsWithFrom:(nonnull YMKPolylinePosition *)from
                                          to:(nonnull YMKPolylinePosition *)to;

Return distance between two polyline positions.


Properties

metadata

@property (nonatomic, readonly, nonnull) YMKMasstransitRouteMetadata *metadata;

General route information.


wayPoints

@property (nonatomic, readonly, nonnull)
    NSArray<YMKMasstransitWayPoint *> *wayPoints;

List of route waypoints. See YMKMasstransitWayPoint for details


sections

@property (nonatomic, readonly, nonnull)
    NSArray<YMKMasstransitSection *> *sections;

Vector of sections of the route.


geometry

@property (nonatomic, readonly, nonnull) YMKPolyline *geometry;

Polyline of the entire route.


uriMetadata

@property (nonatomic, readonly, nonnull) YMKUriObjectMetadata *uriMetadata;

Route URI, which can be used with YMKMasstransitRouter to fetch additional information about the route or can be bookmarked for future reference.