Важно

This feature is available in the Full MapKit SDK version

YMKBicycleRouter

class YMKBicycleRouter : NSObject

Provides methods for submitting bicycle routing requests.

Summary

Instance methods

func requestRoutes(with points: [YMKRequestPoint],
                          type: YMKBicycleVehicleType,
                 routeListener: @escaping YMKBicycleSessionRouteListener) -> YMKBicycleSession
Submits a request to find a bicycle route

func requestRoutesSummary(with points: [YMKRequestPoint],
                                 type: YMKBicycleVehicleType,
                       summaryHandler: @escaping YMKBicycleSummarySessionSummaryHandler) -> YMKBicycleSummarySession
Submits a request to fetch a brief summary of the bicycle routes

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

Instance methods

requestRoutes(with:type:routeListener:)

func requestRoutes(with points: [YMKRequestPoint],
                          type: YMKBicycleVehicleType,
                 routeListener: @escaping YMKBicycleSessionRouteListener) -> YMKBicycleSession

Примечание

This feature is not available in the free MapKit version.

Submits a request to find a bicycle route.

Parameters

points

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

routeListener

Listener to retrieve a list of Route objects.


requestRoutesSummary(with:type:summaryHandler:)

func requestRoutesSummary(with points: [YMKRequestPoint],
                                 type: YMKBicycleVehicleType,
                       summaryHandler: @escaping YMKBicycleSummarySessionSummaryHandler) -> YMKBicycleSummarySession

Примечание

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 YMKRequestPoint for details). Currently only two points are supported (start and finish).

summaryListener

Listener to retrieve a list of Route objects.


resolveUri(withUri:routeListener:)

func resolveUri(withUri uri: String,
              routeListener: @escaping YMKBicycleSessionRouteListener) -> YMKBicycleSession

Примечание

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.


Предыдущая
Следующая