public interface RouteModifiersOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAvoidFerries()
When set to true, avoids ferries where reasonable, giving preference to
routes not containing ferries.
|
boolean |
getAvoidHighways()
When set to true, avoids highways where reasonable, giving preference to
routes not containing highways.
|
boolean |
getAvoidIndoor()
When set to true, avoids navigating indoors where reasonable, giving
preference to routes not containing indoor navigation.
|
boolean |
getAvoidTolls()
When set to true, avoids toll roads where reasonable, giving preference to
routes not containing toll roads.
|
TollPass |
getTollPasses(int index)
Encapsulates information about toll passes.
|
int |
getTollPassesCount()
Encapsulates information about toll passes.
|
List<TollPass> |
getTollPassesList()
Encapsulates information about toll passes.
|
int |
getTollPassesValue(int index)
Encapsulates information about toll passes.
|
List<Integer> |
getTollPassesValueList()
Encapsulates information about toll passes.
|
VehicleInfo |
getVehicleInfo()
Specifies the vehicle information.
|
VehicleInfoOrBuilder |
getVehicleInfoOrBuilder()
Specifies the vehicle information.
|
boolean |
hasVehicleInfo()
Specifies the vehicle information.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean getAvoidTolls()
When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the `DRIVE` and `TWO_WHEELER` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
bool avoid_tolls = 1;boolean getAvoidHighways()
When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the `DRIVE` and `TWO_WHEELER` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
bool avoid_highways = 2;boolean getAvoidFerries()
When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
bool avoid_ferries = 3;boolean getAvoidIndoor()
When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the `WALK` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
bool avoid_indoor = 4;boolean hasVehicleInfo()
Specifies the vehicle information.
.google.maps.routing.v2.VehicleInfo vehicle_info = 5;VehicleInfo getVehicleInfo()
Specifies the vehicle information.
.google.maps.routing.v2.VehicleInfo vehicle_info = 5;VehicleInfoOrBuilder getVehicleInfoOrBuilder()
Specifies the vehicle information.
.google.maps.routing.v2.VehicleInfo vehicle_info = 5;List<TollPass> getTollPassesList()
Encapsulates information about toll passes. If toll passes are provided, the API tries to return the pass price. If toll passes are not provided, the API treats the toll pass as unknown and tries to return the cash price. Applies only to the `DRIVE` and `TWO_WHEELER` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
repeated .google.maps.routing.v2.TollPass toll_passes = 6;int getTollPassesCount()
Encapsulates information about toll passes. If toll passes are provided, the API tries to return the pass price. If toll passes are not provided, the API treats the toll pass as unknown and tries to return the cash price. Applies only to the `DRIVE` and `TWO_WHEELER` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
repeated .google.maps.routing.v2.TollPass toll_passes = 6;TollPass getTollPasses(int index)
Encapsulates information about toll passes. If toll passes are provided, the API tries to return the pass price. If toll passes are not provided, the API treats the toll pass as unknown and tries to return the cash price. Applies only to the `DRIVE` and `TWO_WHEELER` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
repeated .google.maps.routing.v2.TollPass toll_passes = 6;index - The index of the element to return.List<Integer> getTollPassesValueList()
Encapsulates information about toll passes. If toll passes are provided, the API tries to return the pass price. If toll passes are not provided, the API treats the toll pass as unknown and tries to return the cash price. Applies only to the `DRIVE` and `TWO_WHEELER` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
repeated .google.maps.routing.v2.TollPass toll_passes = 6;int getTollPassesValue(int index)
Encapsulates information about toll passes. If toll passes are provided, the API tries to return the pass price. If toll passes are not provided, the API treats the toll pass as unknown and tries to return the cash price. Applies only to the `DRIVE` and `TWO_WHEELER` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
repeated .google.maps.routing.v2.TollPass toll_passes = 6;index - The index of the value to return.Copyright © 2025 Google LLC. All rights reserved.