Важно

This feature is available in the Full MapKit SDK version

YMKDrivingRouter

class YMKDrivingRouter : NSObject

Interface for the driving router.

Summary

Instance methods

func requestRoutes(with points: [YMKRequestPoint],
                drivingOptions: YMKDrivingOptions,
                vehicleOptions: YMKDrivingVehicleOptions,
                  routeHandler: @escaping YMKDrivingSessionRouteHandler) -> YMKDrivingSession
Builds a route

func requestRoutesSummary(with points: [YMKRequestPoint],
                       drivingOptions: YMKDrivingOptions,
                       vehicleOptions: YMKDrivingVehicleOptions,
                       summaryHandler: @escaping YMKDrivingSummarySessionSummaryHandler) -> YMKDrivingSummarySession
Creates a route summary

Instance methods

requestRoutes(with:drivingOptions:vehicleOptions:routeHandler:)

func requestRoutes(with points: [YMKRequestPoint],
                drivingOptions: YMKDrivingOptions,
                vehicleOptions: YMKDrivingVehicleOptions,
                  routeHandler: @escaping YMKDrivingSessionRouteHandler) -> YMKDrivingSession

Builds a route.

Parameters

points

Route points.

drivingOptions

Driving options.

vehicleOptions

Vehicle options.

routeListener

Route listener object.


requestRoutesSummary(with:drivingOptions:vehicleOptions:summaryHandler:)

func requestRoutesSummary(with points: [YMKRequestPoint],
                       drivingOptions: YMKDrivingOptions,
                       vehicleOptions: YMKDrivingVehicleOptions,
                       summaryHandler: @escaping YMKDrivingSummarySessionSummaryHandler) -> YMKDrivingSummarySession

Creates a route summary.

Parameters

points

Route points.

drivingOptions

Driving options.

vehicleOptions

Vehicle options.

summaryListener

Summary listener object.


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