code: public static PendingResult<SpeedLimit[]> speedLimits(GeoApiContext context, String... placeIds) {
      String[] placeParams = new String[2 * placeIds.length];
      int i = 0;
      for (String placeId : placeIds) {
        placeParams[i++] = "placeId";
        placeParams[i++] = placeId;
      }
  
      return context.get(SPEEDS_API_CONFIG, SpeedsResponse.class, placeParams);
    }
docs: Returns the posted speed limit for given road segments.
  
  <p>Note: The accuracy of speed limit data returned by the Google Maps Roads API cannot be
  guaranteed. Speed limit data provided is not real-time, and may be estimated, inaccurate,
  incomplete, and/or outdated. Inaccuracies in our data may be reported through <a
  href="https://www.localguidesconnect.com/t5/News-Updates/Exclusive-Edit-a-road-segment-in-Google-Maps/ba-p/149865">
  Google Maps Feedback</a>.
  
  @param context The {@link GeoApiContext} to make requests through.
  @param placeIds The Place ID of the road segment. Place IDs are returned by the {@link
  #snapToRoads(GeoApiContext, com.google.maps.model.LatLng...)} method. You can pass up to
  100 placeIds with each request.
  @return Returns the speed limits as a {@link PendingResult}.