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&destinationto to denote the starting and end locations of the tripmodeset to “car” to get a route which a car can takeavoidparameter specifying “toll” & “highway” as the criteria