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], |
func requestRoutesSummary(with points: [MMKRequestPoint], |
func requestRoutesSummaryWith(from: MMKRequestPoint, |
func resolveUri(withUri uri: String, |
func routeSerializer() -> MMKMasstransitRouteSerializer |
Instance methods
requestRoutes(with:timeOptions:routeOptions:routeHandler:)
func requestRoutes(with points: [MMKRequestPoint], |
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], |
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, |
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, |
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.