Table of Contents

Class RouteModifiers

Namespace
GoogleMapsApi.Entities.Routes.Request
Assembly
GoogleMapsApi.dll

Optional set of conditions that influence route generation — avoidances, vehicle info (for emissions-aware routing), and toll passes.

public sealed class RouteModifiers
Inheritance
RouteModifiers
Inherited Members

Properties

AvoidFerries

Avoid ferries where reasonable.

[JsonPropertyName("avoidFerries")]
public bool? AvoidFerries { get; set; }

Property Value

bool?

AvoidHighways

Avoid highways where reasonable.

[JsonPropertyName("avoidHighways")]
public bool? AvoidHighways { get; set; }

Property Value

bool?

AvoidIndoor

Avoid navigation indoors where reasonable. Walking only.

[JsonPropertyName("avoidIndoor")]
public bool? AvoidIndoor { get; set; }

Property Value

bool?

AvoidTolls

Avoid toll roads where reasonable.

[JsonPropertyName("avoidTolls")]
public bool? AvoidTolls { get; set; }

Property Value

bool?

TollPasses

Toll passes the vehicle holds. When supplied, the Routes API may return routes behind toll-pass-only lanes.

[JsonPropertyName("tollPasses")]
public List<string>? TollPasses { get; set; }

Property Value

List<string>

VehicleInfo

Vehicle information used for emissions-aware routing. Required when ExtraComputations includes FuelConsumption.

[JsonPropertyName("vehicleInfo")]
public VehicleInfo? VehicleInfo { get; set; }

Property Value

VehicleInfo