def speed_limits(place_ids)
      params = GoogleMapsService::Convert.as_list(place_ids).map { |place_id| ['placeId', place_id] }

      return get('/v1/speedLimits', params,
                 base_url: ROADS_BASE_URL,
                 accepts_client_id: false,
                 custom_response_decoder: method(:extract_roads_body))[:speedLimits]
    end
def speed_limits(place_ids)
      params = GoogleMapsService::Convert.as_list(place_ids).map { |place_id| ['placeId', place_id] }

      return get('/v1/speedLimits', params,
                 base_url: ROADS_BASE_URL,
                 accepts_client_id: false,
                 custom_response_decoder: method(:extract_roads_body))[:speedLimits]
    end
Returns the posted speed limit (in km/h) for given road segments.

 @example Multi places snap
   place_ids = [
     'ChIJ0wawjUCuEmsRgfqC5Wd9ARM',
     'ChIJ6cs2kkCuEmsRUfqC5Wd9ARM'
   ]
   results = client.speed_limits(place_ids)

 @param [String, Array<String>] place_ids The Place ID of the road segment. Place IDs are returned
         by the snap_to_roads function. You can pass up to 100 Place IDs.

 @return [Array] Array of speed limits.