Warning

This feature is available in the Full MapKit SDK version

MMKMasstransitRoute

@interface MMKMasstransitRoute : NSObject

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

Summary

Instance methods

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

Return distance between two polyline positions

Properties

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

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

List of route waypoints

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

Vector of sections of the route

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

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

Instance methods

distanceBetweenPolylinePositionsWithFrom:to:

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

Return distance between two polyline positions.


Properties

metadata

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

General route information.


wayPoints

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

List of route waypoints. See MMKMasstransitWayPoint for details


sections

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

Vector of sections of the route.


geometry

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

Polyline of the entire route.


uriMetadata

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

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