lib/geocoder/lookups/yandex.rb in geocoder-1.6.2 vs lib/geocoder/lookups/yandex.rb in geocoder-1.6.3

- old
+ new

@@ -31,11 +31,10 @@ Geocoder.log(:warn, "Yandex Geocoding API error: #{err['status']} (#{err['message']}).") end return [] end if doc = doc['response']['GeoObjectCollection'] - meta = doc['metaDataProperty']['GeocoderResponseMetaData'] - return meta['found'].to_i > 0 ? doc['featureMember'] : [] + return doc['featureMember'].to_a else Geocoder.log(:warn, "Yandex Geocoding API error: unexpected response format.") return [] end end