RoutingSummary

public abstract class RoutingSummary implements Parcelable


The duration and distance from the routing origin to a place in the response, and a second leg from that place to the destination, if requested.

Summary

Nested types

public abstract class RoutingSummary.Builder

Builder for RoutingSummary.

Public constructors

Public methods

static RoutingSummary.Builder
builder(List<Leg> legs)

Returns a Builder for RoutingSummary.

abstract @Nullable Uri

A link to show directions on Google Maps for the given routing summary.

abstract List<Leg>

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

static RoutingSummary

Returns a RoutingSummary with the given list of Legs.

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

RoutingSummary

public RoutingSummary()

Public methods

builder

public static RoutingSummary.Builder builder(List<Leg> legs)

Returns a Builder for RoutingSummary.

getDirectionsUri

public abstract @Nullable Uri getDirectionsUri()

A link to show directions on Google Maps for the given routing summary.

getLegs

public abstract List<LeggetLegs()

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

newInstance

public static RoutingSummary newInstance(List<Leg> legs)

Returns a RoutingSummary with the given list of Legs.