def parse_authority_response
      end_response = []

      @raw_response["geonames"].each do |geoname|

        count = ActiveFedora::Base.find_with_conditions("based_near_ssim:#{solr_clean("http://www.geonames.org/#{geoname["geonameId"]}")}", rows: '100', fl: 'id' ).length

        if count >= 99
          count = "99+"
        else
          count = count.to_s
        end

        end_response << {
            "uri_link" => "http://www.geonames.org/#{geoname["geonameId"]}" || "missing!",
            "label" => geoname["name"],
            "broader" => broader(geoname),
            "narrower" => narrower(geoname),
            "variants" => variants(geoname),
            "count" => count
        }
      end

      end_response
    end
def parse_authority_response
      end_response = []

      @raw_response["geonames"].each do |geoname|

        count = ActiveFedora::Base.find_with_conditions("based_near_ssim:#{solr_clean("http://www.geonames.org/#{geoname["geonameId"]}")}", rows: '100', fl: 'id' ).length

        if count >= 99
          count = "99+"
        else
          count = count.to_s
        end

        end_response << {
            "uri_link" => "http://www.geonames.org/#{geoname["geonameId"]}" || "missing!",
            "label" => geoname["name"],
            "broader" => broader(geoname),
            "narrower" => narrower(geoname),
            "variants" => variants(geoname),
            "count" => count
        }
      end

      end_response
    end
result["geonames"].first["name"]
result["geonames"].first["geonameId"]
bbox
adminId1
adminId2