Class YMKMasstransitRouter

Provides methods for submitting mass transit routing requests.

Instance Methods

- requestRoutesSummaryWithPoints:masstransitOptions:summaryHandler:

Submits a request to fetch a brief summary of a mass transit route.

- requestRoutesWithPoints:masstransitOptions:routeHandler:

Submits a request to find mass transit routes.

- resolveUriWithUri:timeOptions:routeHandler:

Submits a request to retrieve detailed information on a mass transit route by URI.

- routeSerializer

Returns a route serializer instance.

Method Detail

-requestRoutesSummaryWithPoints:masstransitOptions:summaryHandler:

- (nonnull YMKMasstransitSummarySession *)requestRoutesSummaryWithPoints:(nonnull NSArray< YMKRequestPoint * > *)points
                                                      masstransitOptions:(nonnull YMKMasstransitOptions *)masstransitOptions
                                                          summaryHandler:(nonnull YMKMasstransitSummarySessionSummaryHandler)summaryHandler 

Submits a request to fetch a brief summary of a mass transit route.

-requestRoutesWithPoints:masstransitOptions:routeHandler:

- (nonnull YMKMasstransitSession *)requestRoutesWithPoints:(nonnull NSArray< YMKRequestPoint * > *)points
                                        masstransitOptions:(nonnull YMKMasstransitOptions *)masstransitOptions
                                              routeHandler:(nonnull YMKMasstransitSessionRouteHandler)routeHandler 

Submits a request to find mass transit routes.

Parameters:
points

Route points (See YMKRequestPoint for details). Currently only two points are supported (start and finish)

masstransitOptions

Additional parameters for building routes.

routeListener

Listener to retrieve a list of MasstransitRoute objects.

-resolveUriWithUri:timeOptions:routeHandler:

- (nonnull YMKMasstransitSession *)resolveUriWithUri:(nonnull NSString *)uri
                                         timeOptions:(nonnull YMKTimeOptions *)timeOptions
                                        routeHandler:(nonnull YMKMasstransitSessionRouteHandler)routeHandler 

Submits a request to retrieve detailed information on a mass transit route by URI.

Parameters:
uri

The URI of the mass transit route. Starts with "ymapsbm1://route/transit".

timeOptions

Desired departure/arrival time settings. Empty YMKTimeOptions for requests that are not time-dependent.

routeListener

Listener to retrieve a list of MasstransitRoute objects.

-routeSerializer

- (nonnull YMKMasstransitRouteSerializer *)routeSerializer

Returns a route serializer instance.