Interface Transport

com.yandex.mapkit.transport

public interface Transport

Methods

BicycleRouter createBicycleRouter()

Creates a manager that builds bicycle routes using the origin and destination points.

MasstransitRouter createMasstransitRouter()

Creates a manager that builds public transit routes using the origin and destination points.

PedestrianRouter createPedestrianRouter()

Creates a manager that builds pedestrian routes using the origin and destination points.

AdjustedClock getAdjustedClock()

Returns the clock that is constantly synchronized with the server.

boolean isValid()

Tells if this Transport is valid or no.

Method Detail

createBicycleRouter

public BicycleRouter createBicycleRouter ()

Creates a manager that builds bicycle routes using the origin and destination points.

createMasstransitRouter

public MasstransitRouter createMasstransitRouter ()

Creates a manager that builds public transit routes using the origin and destination points.

createPedestrianRouter

public PedestrianRouter createPedestrianRouter ()

Creates a manager that builds pedestrian routes using the origin and destination points.

getAdjustedClock

public AdjustedClock getAdjustedClock ()

Returns the clock that is constantly synchronized with the server.

isValid

public boolean isValid ()

Tells if this Transport is valid or no.

Any other method (except for this one) called on an invalid Transport will throw java.lang.RuntimeException. An instance becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.