Interface RouteModifiersOrBuilder (1.51.0)

publicinterface RouteModifiersOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getAvoidFerries()

publicabstractbooleangetAvoidFerries()

Specifies whether to avoid ferries where reasonable. Preference will be given to routes not containing travel by ferries. Applies only to motorized travel modes.

bool avoid_ferries = 4;

Returns
Type Description
boolean

The avoidFerries.

getAvoidHighways()

publicabstractbooleangetAvoidHighways()

Specifies whether to avoid highways where reasonable. Preference will be given to routes not containing highways. Applies only to motorized travel modes.

bool avoid_highways = 3;

Returns
Type Description
boolean

The avoidHighways.

getAvoidIndoor()

publicabstractbooleangetAvoidIndoor()

Optional. Specifies whether to avoid navigating indoors where reasonable. Preference will be given to routes not containing indoor navigation. Applies only to the WALKING travel mode.

bool avoid_indoor = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The avoidIndoor.

getAvoidTolls()

publicabstractbooleangetAvoidTolls()

Specifies whether to avoid toll roads where reasonable. Preference will be given to routes not containing toll roads. Applies only to motorized travel modes.

bool avoid_tolls = 2;

Returns
Type Description
boolean

The avoidTolls.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.