public DistanceMatrixApiRequest avoid(RouteRestriction restriction) {
    return param("avoid", restriction);
  }
Introduces restrictions to the route. Only one restriction can be specified.

@param restriction A {@link RouteRestriction} object.
@return Returns this {@code DistanceMatrixApiRequest} for call chaining.
src/main/java/com/google/maps/DistanceMatrixApiRequest.java