Leg

public abstract class Leg implements Parcelable


A single portion of a journey from one location to another.

Summary

Public constructors

Leg()

Public methods

abstract int

Get the distance of this leg of the trip.

abstract Duration

Get the time it takes to finish this leg of the trip.

static Leg
newInstance(Duration duration, int distanceMeters)

Returns a Leg

Inherited Constants

From android.os.Parcelable
static final int
static final int
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int
int
abstract void
writeToParcel(Parcel p, int p1)

Public constructors

Leg

public Leg()

Public methods

getDistanceMeters

public abstract int getDistanceMeters()

Get the distance of this leg of the trip.

getDuration

public abstract Duration getDuration()

Get the time it takes to finish this leg of the trip.

newInstance

public static Leg newInstance(Duration duration, int distanceMeters)

Returns a Leg