Interface DrivingRouter

com.yandex.mapkit.directions.driving

public interface DrivingRouter

Interface for the driving router.

Methods

DrivingSession requestRoutes(@NonNull List< RequestPoint > points, @NonNull DrivingOptions drivingOptions, @NonNull DrivingRouteListener routeListener)

Builds a route.

DrivingSummarySession requestRoutesSummary(@NonNull List< RequestPoint > points, @NonNull DrivingOptions drivingOptions, @NonNull DrivingSummaryListener summaryListener)

Creates a route summary.

void resume()

Resumes all conditions in the request for routes received by this DrivingRouter.

RouteSerializer routeSerializer()

Route serializer.

void setAnnotationLanguage(@NonNull AnnotationLanguage annotationLanguage)

A method to set the annotation language.

void setOfflineRoutingEnabled(boolean on)
void suspend()

Suspends all conditions in the request for routes received by this DrivingRouter.

Method Detail

requestRoutes

public DrivingSession requestRoutes (@NonNull List< RequestPoint > points, @NonNull DrivingOptions drivingOptions, @NonNull DrivingRouteListener routeListener)

Builds a route.

Parameters:
points

Route points.

drivingOptions

Driving options.

routeListener

Route listener object.

requestRoutesSummary

public DrivingSummarySession requestRoutesSummary (@NonNull List< RequestPoint > points, @NonNull DrivingOptions drivingOptions, @NonNull DrivingSummaryListener summaryListener)

Creates a route summary.

Parameters:
points

Route points.

drivingOptions

Driving options.

summaryListener

Route listener object.

resume

public void resume ()

Resumes all conditions in the request for routes received by this DrivingRouter.

This is the default state.

routeSerializer

public RouteSerializer routeSerializer ()

Route serializer.

setAnnotationLanguage

public void setAnnotationLanguage (@NonNull AnnotationLanguage annotationLanguage)

A method to set the annotation language.

Parameters:
annotationLanguage

The annotation language.

setOfflineRoutingEnabled

public void setOfflineRoutingEnabled (boolean on)

Attention.

This feature is not available in the free MapKit version.

Enables or disables offline routing. Disabled by default.

suspend

public void suspend ()

Suspends all conditions in the request for routes received by this DrivingRouter.