Warning

This feature is available in the Full MapKit SDK version

MMKPedestrianRouter

@interface MMKPedestrianRouter : NSObject

Provides methods for submitting pedestrian routing requests.

Summary

Instance methods

- (nonnull MMKMasstransitSession *)
    requestRoutesWithPoints:(nonnull NSArray<MMKRequestPoint *> *)points
                timeOptions:(nonnull MMKTimeOptions *)timeOptions
               routeOptions:(nonnull MMKRouteOptions *)routeOptions
               routeHandler:
                   (nonnull MMKMasstransitSessionRouteHandler)routeHandler;

Submits a request to find a pedestrian route

- (nonnull MMKMasstransitSummarySession *)
    requestRoutesSummaryWithPoints:(nonnull NSArray<MMKRequestPoint *> *)points
                       timeOptions:(nonnull MMKTimeOptions *)timeOptions
                      routeOptions:(nonnull MMKRouteOptions *)routeOptions
                    summaryHandler:
                        (nonnull MMKMasstransitSummarySessionSummaryHandler)
                            summaryHandler;

Submits a request to fetch a brief summary of a pedestrian route

- (nonnull MMKMasstransitSummarySession *)
    requestRoutesSummaryWithFrom:(nonnull MMKRequestPoint *)from
                              to:(nonnull NSArray<MMKRequestPoint *> *)to
                     timeOptions:(nonnull MMKTimeOptions *)timeOptions
                    routeOptions:(nonnull MMKRouteOptions *)routeOptions
                  summaryHandler:
                      (nonnull MMKMasstransitSummarySessionSummaryHandler)
                          summaryHandler;

Submits a request to fetch a brief summary of the pedestrian routes from one to many points

- (nonnull MMKMasstransitSession *)
    resolveUriWithUri:(nonnull NSString *)uri
          timeOptions:(nonnull MMKTimeOptions *)timeOptions
         routeHandler:(nonnull MMKMasstransitSessionRouteHandler)routeHandler;

Submits a request to retrieve detailed information on the pedestrian route by URI

- (nonnull MMKMasstransitRouteSerializer *)routeSerializer;
Route serializer

Instance methods

requestRoutesWithPoints:timeOptions:routeOptions:routeHandler:

- (nonnull MMKMasstransitSession *)
    requestRoutesWithPoints:(nonnull NSArray<MMKRequestPoint *> *)points
                timeOptions:(nonnull MMKTimeOptions *)timeOptions
               routeOptions:(nonnull MMKRouteOptions *)routeOptions
               routeHandler:
                   (nonnull MMKMasstransitSessionRouteHandler)routeHandler;

Submits a request to find a pedestrian route.

Parameters

points

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

timeOptions

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

routeOptions

Options for route personalization.

routeListener

Listener to retrieve a list of MasstransitRoute objects.


requestRoutesSummaryWithPoints:timeOptions:routeOptions:summaryHandler:

- (nonnull MMKMasstransitSummarySession *)
    requestRoutesSummaryWithPoints:(nonnull NSArray<MMKRequestPoint *> *)points
                       timeOptions:(nonnull MMKTimeOptions *)timeOptions
                      routeOptions:(nonnull MMKRouteOptions *)routeOptions
                    summaryHandler:
                        (nonnull MMKMasstransitSummarySessionSummaryHandler)
                            summaryHandler;

Submits a request to fetch a brief summary of a pedestrian route.

Parameters

points

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

timeOptions

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

routeOptions

Options for route personalization.

summaryListener

Listener to retrieve a list of summaries.


requestRoutesSummaryWithFrom:to:timeOptions:routeOptions:summaryHandler:

- (nonnull MMKMasstransitSummarySession *)
    requestRoutesSummaryWithFrom:(nonnull MMKRequestPoint *)from
                              to:(nonnull NSArray<MMKRequestPoint *> *)to
                     timeOptions:(nonnull MMKTimeOptions *)timeOptions
                    routeOptions:(nonnull MMKRouteOptions *)routeOptions
                  summaryHandler:
                      (nonnull MMKMasstransitSummarySessionSummaryHandler)
                          summaryHandler;

Submits a request to fetch a brief summary of the pedestrian routes from one to many points.

Parameters

from

Starting point (See MMKRequestPoint for details).

to

End points.

timeOptions

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

routeOptions

Options for route personalization.

summaryListener

Listener to retrieve a list of summaries.


resolveUriWithUri:timeOptions:routeHandler:

- (nonnull MMKMasstransitSession *)
    resolveUriWithUri:(nonnull NSString *)uri
          timeOptions:(nonnull MMKTimeOptions *)timeOptions
         routeHandler:(nonnull MMKMasstransitSessionRouteHandler)routeHandler;

Submits a request to retrieve detailed information on the pedestrian route by URI.

Parameters

uri

Pedestrian route URI. Begins with "ymapsbm1://route/pedestrian".

timeOptions

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

routeListener

Listener to retrieve a list of MasstransitRoute objects.


routeSerializer

- (nonnull MMKMasstransitRouteSerializer *)routeSerializer;

Route serializer.