Interface Route

com.yandex.mapkit.transport.masstransit

public interface Route

Contains information about a route constructed by the mass transit router.

Methods

void addJamsListener(@NonNull RouteJamsListener jamsListener)

Adds a listener for changes to traffic on the route.

Polyline getGeometry()

Polyline of the entire route.

Jams getJams()

Info about traffic on the route.

RouteMetadata getMetadata()

General route information.

List< Section > getSections()

Vector of sections of the route.

UriObjectMetadata getUriMetadata()

Route URI, which can be used with MasstransitRouter to fetch additional information about the route or can be bookmarked for future reference.

List< WayPoint > getWayPoints()

List of route waypoints.

void removeJamsListener(@NonNull RouteJamsListener jamsListener)

Removes the listener for changes to traffic on the route.

Method Detail

addJamsListener

public void addJamsListener (@NonNull RouteJamsListener jamsListener)

Adds a listener for changes to traffic on the route.

getGeometry

public Polyline getGeometry ()

Polyline of the entire route.

getJams

public Jams getJams ()

Info about traffic on the route.

Optional property, can be null.

getMetadata

public RouteMetadata getMetadata ()

General route information.

getSections

public List< Section > getSections ()

Vector of sections of the route.

getUriMetadata

public UriObjectMetadata getUriMetadata ()

Route URI, which can be used with MasstransitRouter to fetch additional information about the route or can be bookmarked for future reference.

getWayPoints

public List< WayPoint > getWayPoints ()

List of route waypoints.

See WayPoint for details

removeJamsListener

public void removeJamsListener (@NonNull RouteJamsListener jamsListener)

Removes the listener for changes to traffic on the route.