public abstract class WalkingOptions
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WalkingOptions.Builder
This builder is used to create a new object with specifications relating to walking directions.
|
| Constructor and Description |
|---|
WalkingOptions() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Double |
alleyBias()
A bias which determines whether the route should prefer or avoid the use of alleys.
|
static WalkingOptions.Builder |
builder()
Build a new
WalkingOptions object with no defaults. |
static WalkingOptions |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract WalkingOptions.Builder |
toBuilder()
Convert the current
WalkingOptions to its builder holding the currently assigned
values. |
java.lang.String |
toJson()
This takes the currently defined values found inside this instance and converts it to a json
string.
|
static com.google.gson.TypeAdapter<WalkingOptions> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
abstract java.lang.Double |
walkingSpeed()
Walking speed in meters per second.
|
abstract java.lang.Double |
walkwayBias()
A bias which determines whether the route should prefer or avoid the use of roads or paths
that are set aside for pedestrian-only use (walkways).
|
@SerializedName(value="walking_speed") @Nullable public abstract java.lang.Double walkingSpeed()
@SerializedName(value="walkway_bias") @Nullable public abstract java.lang.Double walkwayBias()
@SerializedName(value="alley_bias") @Nullable public abstract java.lang.Double alleyBias()
public static WalkingOptions fromJson(java.lang.String json)
json - a formatted valid JSON string defining a WalkingOptions objectpublic final java.lang.String toJson()
@NonNull public abstract WalkingOptions.Builder toBuilder()
WalkingOptions to its builder holding the currently assigned
values. This allows you to modify a single property and then rebuild the object resulting in
an updated and modified WalkingOptions.WalkingOptions.Builder with the same values set to match the ones defined
in this WalkingOptionspublic static com.google.gson.TypeAdapter<WalkingOptions> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static WalkingOptions.Builder builder()
WalkingOptions object with no defaults.WalkingOptions.Builder object for creating a WalkingOptions object