@Override
  protected void validateRequest() {
    if (!params().containsKey("points")) {
      throw new IllegalArgumentException("Request must contain 'path");
    }
  }
A request to the snap to roads API (part of Roads API).
src/main/java/com/google/maps/NearestRoadsApiRequest.java