public abstract class TransitOptions extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
TransitOptions.Builder
Returns a new builder for an
TransitOptions object. |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
TransitOptions() |
Modifier and Type | Method and Description |
---|---|
static TransitOptions.Builder |
builder()
Creates a new
TransitOptions with the given parameters. |
abstract String |
getLocale()
The locale to use for the
PublicTransportRideOffer . |
abstract Integer |
getMaxAllowedTransfers()
Maximum number of allowed transportation method changes.
|
abstract Integer |
getMaxWalkingDistance()
Maximum walking distance in the offer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract Integer getMaxAllowedTransfers()
null
If null
is given, there will be no limit on the number of transfers.public abstract Integer getMaxWalkingDistance()
public abstract String getLocale()
PublicTransportRideOffer
.
Complies with the ISO 639-1 standard and defaults to MobilitySdk#getUserPreferences()#getLocale()
.public static TransitOptions.Builder builder()
TransitOptions
with the given parameters.