Class YMKMasstransitRouter

Provides methods for submitting mass transit routing requests.

Instance Methods

- alternativesWithUri:routeHandler:

Submits a request to retrieve alternatives for the mass transit route with the specified URI.

- requestRoutesSummaryWithSource:destination:masstransitOptions:summaryHandler:

Submits a request to fetch a brief summary of the mass transit routes between two points.

- requestRoutesWithSource:destination:masstransitOptions:routeHandler:

Submits a request to find mass transit routes between two points.

- resolveUriWithUri:timeOptions:routeHandler:

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

- alternativesWithUri:routeHandler:

Submits a request to retrieve alternatives for the mass transit route with the specified URI.

- requestRoutesSummaryWithSource:destination:masstransitOptions:summaryHandler:

Submits a request to fetch a brief summary of the mass transit routes between two points.

- requestRoutesWithSource:destination:masstransitOptions:routeHandler:

Submits a request to find mass transit routes between two points.

- resolveUriWithUri:timeOptions:routeHandler:

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

Method Detail

-alternativesWithUri:routeHandler:

- (nullable YMKMasstransitSession *)alternativesWithUri:(nonnull NSString *)uri
                                           routeHandler:(nullable YMKMasstransitSessionRouteHandler)routeHandler 

Submits a request to retrieve alternatives for the mass transit route with the specified URI.

Parameters:
uri

URI of the mass transit route.

routeListener

Listener to retrieve a list of MasstransitRoute objects.

uri

URI of the mass transit route.

routeListener

Listener to retrieve a list of MasstransitRoute objects.

-requestRoutesSummaryWithSource:destination:masstransitOptions:summaryHandler:

- (nullable YMKMasstransitSummarySession *)requestRoutesSummaryWithSource:(nonnull YMKPoint *)source
                                                              destination:(nonnull YMKPoint *)destination
                                                       masstransitOptions:(nonnull YMKMasstransitOptions *)masstransitOptions
                                                           summaryHandler:(nullable YMKMasstransitSummarySessionSummaryHandler)summaryHandler 

Submits a request to fetch a brief summary of the mass transit routes between two points.

-requestRoutesWithSource:destination:masstransitOptions:routeHandler:

- (nullable YMKMasstransitSession *)requestRoutesWithSource:(nonnull YMKPoint *)source
                                                destination:(nonnull YMKPoint *)destination
                                         masstransitOptions:(nonnull YMKMasstransitOptions *)masstransitOptions
                                               routeHandler:(nullable YMKMasstransitSessionRouteHandler)routeHandler 

Submits a request to find mass transit routes between two points.

Parameters:
source

Origin point of the route to find.

destination

Destination point of the route to find.

masstransitOptions

Additional parameters for building routes.

routeListener

Listener to retrieve a list of MasstransitRoute objects.

source

Origin point of the route to find.

destination

Destination point of the route to find.

masstransitOptions

Additional parameters for building routes.

routeListener

Listener to retrieve a list of MasstransitRoute objects.

-resolveUriWithUri:timeOptions:routeHandler:

- (nullable YMKMasstransitSession *)resolveUriWithUri:(nonnull NSString *)uri
                                          timeOptions:(nonnull YMKTimeOptions *)timeOptions
                                         routeHandler:(nullable 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.

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.