MapKit Mobile SDK

Warning

This feature is available in the Full MapKit SDK version

MMKBicycleRouterV2

class MMKBicycleRouterV2 : NSObject

Provides methods for submitting bicycle routing requests.

Summary

Instance methods

func requestRoutes(with points: [MMKRequestPoint],
                   timeOptions: MMKTimeOptions,
                  routeOptions: MMKRouteOptions,
                  routeHandler: @escaping MMKMasstransitSessionRouteHandler) -> MMKMasstransitSession
Submits a request to find a bicycle route

func requestRoutesSummary(with points: [MMKRequestPoint],
                          timeOptions: MMKTimeOptions,
                         routeOptions: MMKRouteOptions,
                       summaryHandler: @escaping MMKMasstransitSummarySessionSummaryHandler) -> MMKMasstransitSummarySession
Submits a request to fetch a brief summary of a pedestrian route

func requestRoutesSummaryWith(from: MMKRequestPoint,
                                to: [MMKRequestPoint],
                       timeOptions: MMKTimeOptions,
                      routeOptions: MMKRouteOptions,
                    summaryHandler: @escaping MMKMasstransitSummarySessionSummaryHandler) -> MMKMasstransitSummarySession
Submits a request to fetch a brief summary of the bicycle routes from one to many points

func resolveUri(withUri uri: String,
                timeOptions: MMKTimeOptions,
               routeHandler: @escaping MMKMasstransitSessionRouteHandler) -> MMKMasstransitSession
Submits a request to retrieve detailed information on the pedestrian route by URI

func routeSerializer() -> MMKMasstransitRouteSerializer
Route serializer

Instance methods

requestRoutes(with:timeOptions:routeOptions:routeHandler:)

func requestRoutes(with points: [MMKRequestPoint],
                   timeOptions: MMKTimeOptions,
                  routeOptions: MMKRouteOptions,
                  routeHandler: @escaping MMKMasstransitSessionRouteHandler) -> MMKMasstransitSession

Submits a request to find a bicycle 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.


requestRoutesSummary(with:timeOptions:routeOptions:summaryHandler:)

func requestRoutesSummary(with points: [MMKRequestPoint],
                          timeOptions: MMKTimeOptions,
                         routeOptions: MMKRouteOptions,
                       summaryHandler: @escaping MMKMasstransitSummarySessionSummaryHandler) -> MMKMasstransitSummarySession

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.


requestRoutesSummaryWith(from:to:timeOptions:routeOptions:summaryHandler:)

func requestRoutesSummaryWith(from: MMKRequestPoint,
                                to: [MMKRequestPoint],
                       timeOptions: MMKTimeOptions,
                      routeOptions: MMKRouteOptions,
                    summaryHandler: @escaping MMKMasstransitSummarySessionSummaryHandler) -> MMKMasstransitSummarySession

Submits a request to fetch a brief summary of the bicycle 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.


resolveUri(withUri:timeOptions:routeHandler:)

func resolveUri(withUri uri: String,
                timeOptions: MMKTimeOptions,
               routeHandler: @escaping MMKMasstransitSessionRouteHandler) -> MMKMasstransitSession

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()

func routeSerializer() -> MMKMasstransitRouteSerializer

Route serializer.