Avoid Tolls & Highways
Implement Using: Directions Fast API
To get a route between two points which does not go through a toll road or a highway we can make use of the avoid parameter of the Directions API. The avoid parameter can take multiple values in input and then suggests the best feasible route while avoiding the specified objects/roads. We configure:
origin
&destination
to to denote the starting and end locations of the tripmode
set to “car” to get a route which a car can takeavoid
parameter specifying “toll” & “highway” as the criteria