Warning

This feature is available in the Full MapKit SDK version

MMKBicycleRouter

class MMKBicycleRouter : NSObject

Provides methods for submitting bicycle routing requests.

Alert

use masstransit.BicycleRouterV2 instead

Summary

Instance methods

func requestRoutes(with points: [MMKRequestPoint],
                          type: MMKBicycleVehicleType,
                 routeListener: @escaping MMKBicycleSessionRouteListener) -> MMKBicycleSession
Submits a request to find a bicycle route

func requestRoutesSummary(with points: [MMKRequestPoint],
                                 type: MMKBicycleVehicleType,
                       summaryHandler: @escaping MMKBicycleSummarySessionSummaryHandler) -> MMKBicycleSummarySession
Submits a request to fetch a brief summary of the bicycle routes

func resolveUri(withUri uri: String,
              routeListener: @escaping MMKBicycleSessionRouteListener) -> MMKBicycleSession
Submits a request to retrieve detailed information on a bicycle route by URI

Instance methods

requestRoutes(with:type:routeListener:)

func requestRoutes(with points: [MMKRequestPoint],
                          type: MMKBicycleVehicleType,
                 routeListener: @escaping MMKBicycleSessionRouteListener) -> MMKBicycleSession

Note

This feature is not available in the free MapKit version.

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

routeListener

Listener to retrieve a list of Route objects.

Alert

use masstransit.BicycleRouterV2 instead


requestRoutesSummary(with:type:summaryHandler:)

func requestRoutesSummary(with points: [MMKRequestPoint],
                                 type: MMKBicycleVehicleType,
                       summaryHandler: @escaping MMKBicycleSummarySessionSummaryHandler) -> MMKBicycleSummarySession

Note

This feature is not available in the free MapKit version.

Submits a request to fetch a brief summary of the bicycle routes.

Parameters

points

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

summaryListener

Listener to retrieve a list of Route objects.

Alert

use masstransit.BicycleRouterV2 instead


resolveUri(withUri:routeListener:)

func resolveUri(withUri uri: String,
              routeListener: @escaping MMKBicycleSessionRouteListener) -> MMKBicycleSession

Note

This feature is not available in the free MapKit version.

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

Parameters

uri

The URI of the bicycle route. Starts with "ymapsbm1://route/bicycle".

routeListener

Listener to retrieve a list of Route objects.

Alert

use masstransit.BicycleRouterV2 instead