RouteModifiers

public abstract class RouteModifiers implements Parcelable


Encapsulates a set of optional conditions to satisfy when calculating the routes.

Summary

Nested types

public abstract class RouteModifiers.Builder

Builder for RouteModifiers.

Public constructors

Public methods

static RouteModifiers.Builder

Returns a Builder for RouteModifiers.

abstract boolean

When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries.

abstract boolean

When set to true, avoids highways where reasonable, giving preference to routes not containing highways.

abstract boolean

When set to true, avoids indoor routes where reasonable, giving preference to routes not containing indoor routes.

abstract boolean

When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads.

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

RouteModifiers

public RouteModifiers()

Public methods

builder

public static RouteModifiers.Builder builder()

Returns a Builder for RouteModifiers.

isFerryAvoided

public abstract boolean isFerryAvoided()

When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries.

Please note that this is only applicable to the DRIVE and TWO_WHEELER travel modes for com.google.android.libraries.places.api.model.RoutingParameters.TravelMode.

Default value is false.

isHighwayAvoided

public abstract boolean isHighwayAvoided()

When set to true, avoids highways where reasonable, giving preference to routes not containing highways.

Please note that this is only applicable to the DRIVE and TWO_WHEELER travel modes for com.google.android.libraries.places.api.model.RoutingParameters.TravelMode.

Default value is false.

isIndoorAvoided

public abstract boolean isIndoorAvoided()

When set to true, avoids indoor routes where reasonable, giving preference to routes not containing indoor routes.

WALK is the only travel mode that this is applicable for.

Default value is false.

isTollAvoided

public abstract boolean isTollAvoided()

When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads.

Please note that this is only applicable to the DRIVE and TWO_WHEELER travel modes for com.google.android.libraries.places.api.model.RoutingParameters.TravelMode.

Default value is false.