Class RouteMetadata

com.yandex.mapkit.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(Weight weight, RouteSettings settings, TravelEstimation estimation)
RouteMetadata()

Use constructor with parameters in your code.

RouteMetadata(Weight weight, RouteSettings settings, TravelEstimation estimation)

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 Weight getWeight()

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

void serialize(Archive archive)
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 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 (Weight weight, RouteSettings settings, TravelEstimation estimation)

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.

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)