Class YMKMasstransitRoute

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

Instance Methods

- addJamsListenerWithJamsListener:

Adds a listener for changes to traffic on the route.

- removeJamsListenerWithJamsListener:

Removes the listener for changes to traffic on the route.

Properties

geometry

Polyline of the entire route.

jams

Info about traffic on the route.

metadata

General route information.

sections

Vector of sections of the route.

uriMetadata

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

wayPoints

List of route waypoints.

Method Detail

-addJamsListenerWithJamsListener:

- (void)addJamsListenerWithJamsListener:(nonnull id< YMKMasstransitRouteJamsListener >)jamsListener 

Adds a listener for changes to traffic on the route.

-removeJamsListenerWithJamsListener:

- (void)removeJamsListenerWithJamsListener:(nonnull id< YMKMasstransitRouteJamsListener >)jamsListener 

Removes the listener for changes to traffic on the route.

Property Detail

geometry

(assign, readonly) YMKPolyline * geometry

Polyline of the entire route.

jams

(assign, readonly) YMKMasstransitJams * jams

Info about traffic on the route.

Optional property, can be nil.

metadata

(assign, readonly) YMKMasstransitRouteMetadata * metadata

General route information.

sections

(assign, readonly) NSArray< YMKMasstransitSection * > * sections

Vector of sections of the route.

uriMetadata

(assign, readonly) YMKUriObjectMetadata * uriMetadata

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

wayPoints

(assign, readonly) NSArray< YMKMasstransitWayPoint * > * wayPoints

List of route waypoints.

See YMKMasstransitWayPoint for details