RoutingParameters

public abstract class RoutingParameters implements Parcelable


Parameters to configure the routing calculations to the places in the response, both along a route (where result ranking will be influenced) and for calculating travel times on results.

Summary

Nested types

public abstract class RoutingParameters.Builder

Builder for RoutingParameters.

A set of values that specify factors to take into consideration when calculating the route.

Travel mode options.

Public constructors

Public methods

static RoutingParameters.Builder

Returns a Builder for RoutingParameters.

abstract @Nullable LatLng

An explicit routing origin that overrides the origin defined in the polyline.

abstract @Nullable RouteModifiers

The route modifiers.

abstract @Nullable RoutingParameters.RoutingPreference

The routing preference specifies factors to take into consideration when calculating the route.

abstract @Nullable RoutingParameters.TravelMode

The travel mode option.

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

RoutingParameters

public RoutingParameters()

Public methods

builder

public static RoutingParameters.Builder builder()

Returns a Builder for RoutingParameters.

getOrigin

public abstract @Nullable LatLng getOrigin()

An explicit routing origin that overrides the origin defined in the polyline. By default, the polyline origin is used.

getRouteModifiers

public abstract @Nullable RouteModifiers getRouteModifiers()

The route modifiers.

getRoutingPreference

public abstract @Nullable RoutingParameters.RoutingPreference getRoutingPreference()

The routing preference specifies factors to take into consideration when calculating the route.

getTravelMode

public abstract @Nullable RoutingParameters.TravelMode getTravelMode()

The travel mode option.