def extract_location_media(location_id, request_parameters: {})
      uri   = "explore/locations/#{location_id}/"
      data  = request(uri: uri, parameters: request_parameters)
      body  = data.body[:location]
      location = Entities::Location.new
      attrs = %i[name lat lng id]
      attrs.each do |attribute|
        location.send("#{attribute}=", body[attribute])
      end
      media = {}
      body[:media].fetch(:nodes, []).each do |medium|
        media[medium[:id]] = Entities::MediumNode.new(medium)
      end
      location.media = media.values
      location.top_posts = body[:top_posts].fetch(:nodes, []).map {|d| Entities::MediumNode.new(d)}
      location.paging_info = body[:media].fetch(:page_info, {})
      location
    end
def extract_location_media(location_id, request_parameters: {})
      uri   = "explore/locations/#{location_id}/"
      data  = request(uri: uri, parameters: request_parameters)
      body  = data.body[:location]
      location = Entities::Location.new
      attrs = %i[name lat lng id]
      attrs.each do |attribute|
        location.send("#{attribute}=", body[attribute])
      end
      media = {}
      body[:media].fetch(:nodes, []).each do |medium|
        media[medium[:id]] = Entities::MediumNode.new(medium)
      end
      location.media = media.values
      location.top_posts = body[:top_posts].fetch(:nodes, []).map {|d| Entities::MediumNode.new(d)}
      location.paging_info = body[:media].fetch(:page_info, {})
      location
    end
performs the actual request to the API.

 returns a Location object.