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 | |
---|---|
avoidTolls |
Specifies whether to avoid toll roads where reasonable. Preference will be given to routes not containing toll roads. Applies only to the |
avoidHighways |
Specifies whether to avoid highways where reasonable. Preference will be given to routes not containing highways. Applies only to the |
avoidFerries |
Specifies whether to avoid ferries where reasonable. Preference will be given to routes not containing travel by ferries. Applies only to the |
avoidIndoor |
Specifies whether to avoid navigating indoors where reasonable. Preference will be given to routes not containing indoor navigation. Applies only to the |
vehicleInfo |
Specifies the vehicle information. |
tollPasses[] |
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 travel modes. |
VehicleInfo
Encapsulates the vehicle information, such as the license plate last character.
JSON representation |
---|
{
"emissionType": enum ( |
Fields | |
---|---|
emissionType |
Describes the vehicle's emission type. Applies only to the DRIVE travel mode. |