public DirectionsApiRequest avoid(DirectionsApi.RouteRestriction... restrictions) {
    return param("avoid", join('|', restrictions));
  }
Indicates that the calculated route(s) should avoid the indicated features.

@param restrictions one or more of {@link DirectionsApi.RouteRestriction} objects.
@return Returns this {@code DirectionsApiRequest} for call chaining.
src/main/java/com/google/maps/DirectionsApiRequest.java