Class YMKMasstransitRoute

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

Instance Methods

- addJamsListenerWithJamsListener:

Adds a listener for changes to traffic jams on the route.

- removeJamsListenerWithJamsListener:

Removes a listener for changes to traffic jams on the route.

Properties

geometry

Polyline of a whole route.

jams

Info about jams on the route.

metadata

General route information.

sections

Vector of sections of the route.

uriMetadata

Route URI, which can be used together 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 jams on the route.

-removeJamsListenerWithJamsListener:

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

Removes a listener for changes to traffic jams on the route.

Property Detail

geometry

(assign, readonly) YMKPolyline * geometry

Polyline of a whole route.

jams

(assign, readonly) YMKMasstransitJams * jams

Info about jams 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 together 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