Avoid tolls for a truck
Implement Using: Distance Matrix Fast API
In this example, we will add a 4 x 5 matrix with 4 origins and 5 destinations which would result in a total of 20 combinations (or elements) in the response with each containing distance and duration for respective combination of locations. We will also customize our request and set:
avoid
set to “toll” to ensure routes with tolls are avoidedmode
set to “truck” to get routes suitable for a truck