Warning
This feature is available in the Full MapKit SDK version
MMKMasstransitRouter
class MMKMasstransitRouter : NSObject |
Provides methods for submitting mass transit routing requests.
Summary
Instance methods
func requestRoutes(with points: [MMKRequestPoint], |
func requestRoutesSummary(with points: [MMKRequestPoint], |
func resolveUri(withUri uri: String, |
func routeSerializer() -> MMKMasstransitRouteSerializer |
Instance methods
requestRoutes(with:transitOptions:routeOptions:routeHandler:)
func requestRoutes(with points: [MMKRequestPoint], |
Submits a request to find mass transit routes.
Parameters |
|
points |
Route points (See MMKRequestPoint for details). Currently only two points are supported (start and finish) |
transitOptions |
Additional parameters for building routes. |
routeOptions |
Options for route personalization. |
routeListener |
Listener to retrieve a list of MasstransitRoute objects. |
requestRoutesSummary(with:transitOptions:routeOptions:summaryHandler:)
func requestRoutesSummary(with points: [MMKRequestPoint], |
Submits a request to fetch a brief summary of a mass transit route.
resolveUri(withUri:timeOptions:routeHandler:)
func resolveUri(withUri uri: String, |
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 MMKTimeOptions for requests that are not time-dependent. |
routeListener |
Listener to retrieve a list of MasstransitRoute objects. |
routeSerializer()
func routeSerializer() -> MMKMasstransitRouteSerializer |
Returns a route serializer instance.