Class RouteMetadata

com.yandex.mapkit.transport.masstransit

java.lang.Object ⇽ RouteMetadata

public class RouteMetadata

Contains information associated with a route constructed by the mass transit router.

Constructors

RouteMetadata()

Use constructor with parameters in your code.

RouteMetadata(@NonNull Weight weight, @Nullable RouteSettings settings, @Nullable TravelEstimation estimation, @NonNull List< WayPoint > wayPoints)

Methods

synchronized TravelEstimation getEstimation()

Arrival and departure time estimations for time-dependent routes.

String getNativeName()
synchronized RouteSettings getSettings()

Route settings that were used by the mass transit router.

synchronized List< WayPoint > getWayPoints()

List of route waypoints.

synchronized Weight getWeight()

Contains the route time, distance of the walking part, and the number of transfers.

void serialize(Archive archive)

Constructor Detail

RouteMetadata

public RouteMetadata ()

Use constructor with parameters in your code.

This one is for serialization only!

RouteMetadata

public RouteMetadata (@NonNull Weight weight, @Nullable RouteSettings settings, @Nullable TravelEstimation estimation, @NonNull List< WayPoint > wayPoints)

Method Detail

getEstimation

public synchronized TravelEstimation getEstimation ()

Arrival and departure time estimations for time-dependent routes.

Optional field, can be null.

getNativeName

public static String getNativeName ()

getSettings

public synchronized RouteSettings getSettings ()

Route settings that were used by the mass transit router.

Optional field, can be null.

getWayPoints

public synchronized List< WayPoint > getWayPoints ()

List of route waypoints.

See WayPoint for details

getWeight

public synchronized Weight getWeight ()

Contains the route time, distance of the walking part, and the number of transfers.

serialize

public void serialize (Archive archive)