Interface PedestrianRouter

com.yandex.mapkit.transport.masstransit

public interface PedestrianRouter

Provides methods for submitting pedestrian routing requests.

Methods

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

Submits a request to find a pedestrian route.

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

Submits a request to fetch a brief summary of a pedestrian route.

SummarySession requestRoutesSummary(@NonNull RequestPoint from, @NonNull List< RequestPoint > to, @NonNull TimeOptions timeOptions, @NonNull SummaryListener summaryListener)

Submits a request to fetch a brief summary of the pedestrian routes from one to many points.

Session resolveUri(@NonNull String uri, @NonNull TimeOptions timeOptions, @NonNull RouteListener routeListener)

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

MasstransitRouteSerializer routeSerializer()

Route serializer.

Method Detail

requestRoutes

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

Submits a request to find a pedestrian route.

Parameters:
points

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

timeOptions

Desired departure/arrival time settings. Empty TimeOptions for requests that are not time-dependent.

routeListener

Listener to retrieve a list of MasstransitRoute objects.

requestRoutesSummary

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

Submits a request to fetch a brief summary of a pedestrian route.

Parameters:
points

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

timeOptions

Desired departure/arrival time settings. Empty TimeOptions for requests that are not time-dependent.

summaryListener

Listener to retrieve a list of summaries.

requestRoutesSummary

public SummarySession requestRoutesSummary (@NonNull RequestPoint from, @NonNull List< RequestPoint > to, @NonNull TimeOptions timeOptions, @NonNull SummaryListener summaryListener)

Submits a request to fetch a brief summary of the pedestrian routes from one to many points.

Parameters:
from

Starting point (See RequestPoint for details).

to

End points.

timeOptions

Desired departure/arrival time settings. Empty TimeOptions for requests that are not time-dependent.

summaryListener

Listener to retrieve a list of summaries.

resolveUri

public Session resolveUri (@NonNull String uri, @NonNull TimeOptions timeOptions, @NonNull RouteListener routeListener)

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

Parameters:
uri

Pedestrian route URI. Begins with "ymapsbm1://route/pedestrian".

timeOptions

Desired departure/arrival time settings. Empty TimeOptions for requests that are not time-dependent.

routeListener

Listener to retrieve a list of MasstransitRoute objects.

routeSerializer

public MasstransitRouteSerializer routeSerializer ()

Route serializer.