public abstract class PublicTransportRouteLeg extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
PublicTransportRouteLeg.TransportMode
The transport mode of this leg.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
PublicTransportRouteLeg() |
Modifier and Type | Method and Description |
---|---|
static PublicTransportRouteLeg |
create(PublicTransportRouteLeg.TransportMode transportMode,
Long estimatedDurationMs,
Long length,
String lineName,
String operatorName,
Waypoint originWaypoint,
Long estimatedDepartureTime,
Waypoint destinationWaypoint,
Long estimatedArrivalTime)
Create new
PublicTransportRouteLeg . |
abstract Waypoint |
getDestination()
The end point of the leg.
|
abstract Long |
getEstimatedArrivalTime()
The estimated arrival time, if known.
|
abstract Long |
getEstimatedDepartureTime()
The estimated departure time, if known.
|
abstract Long |
getEstimatedDurationMs()
The estimated duration of this leg, in milliseconds, if known.
|
abstract Long |
getLength()
The length of the leg in meters, if known in advance.
|
abstract String |
getLineName()
The name of the line.
|
abstract String |
getOperatorName()
The operator of the line.
|
abstract Waypoint |
getOrigin()
The start point of the leg.
|
abstract PublicTransportRouteLeg.TransportMode |
getTransportMode()
The transport mode of this leg.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract PublicTransportRouteLeg.TransportMode getTransportMode()
public abstract Long getEstimatedDurationMs()
public abstract Long getLength()
public abstract String getLineName()
null
if PublicTransportRouteLeg.getTransportMode()
is PublicTransportRouteLeg.TransportMode.WALK
,
otherwise always exist.public abstract String getOperatorName()
public abstract Waypoint getOrigin()
public abstract Long getEstimatedDepartureTime()
public abstract Waypoint getDestination()
public abstract Long getEstimatedArrivalTime()
public static PublicTransportRouteLeg create(PublicTransportRouteLeg.TransportMode transportMode, Long estimatedDurationMs, Long length, String lineName, String operatorName, Waypoint originWaypoint, Long estimatedDepartureTime, Waypoint destinationWaypoint, Long estimatedArrivalTime)
PublicTransportRouteLeg
.