Encapsulates a set of optional conditions to satisfy when calculating the routes.
JSON representation |
---|
{ "avoidTolls": boolean, "avoidHighways": boolean, "avoidFerries": boolean, "avoidIndoor": boolean, "vehicleInfo": { object ( |
Fields | |
---|---|
avoid |
When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the |
avoid |
When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the |
avoid |
When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the |
avoid |
When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the |
vehicle |
Specifies the vehicle information. |
toll |
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 |
VehicleInfo
Encapsulates the vehicle information, such as the vehicle emission type.
JSON representation |
---|
{
"emissionType": enum ( |
Fields | |
---|---|
emission |
Describes the vehicle's emission type. Applies only to the |