Interface BicycleRouter

com.yandex.mapkit.transport.bicycle

public interface BicycleRouter

Provides methods for submitting bicycle routing requests.

Methods

Session requestRoutes(@NonNull List< RequestPoint > points, @NonNull RouteListener routeListener)
SummarySession requestRoutesSummary(@NonNull List< RequestPoint > points, @NonNull SummaryListener summaryListener)

Method Detail

requestRoutes

public Session requestRoutes (@NonNull List< RequestPoint > points, @NonNull RouteListener routeListener)

Attention.

This feature is not available in the free MapKit version.

Submits a request to find a bicycle route.
Parameters:
points

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

routeListener

Listener to retrieve a list of Route objects.

requestRoutesSummary

public SummarySession requestRoutesSummary (@NonNull List< RequestPoint > points, @NonNull SummaryListener summaryListener)

Attention.

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

summaryListener

Listener to retrieve a list of Route objects.