lib/geocoder/lookups/geocodio.rb in geocoder-1.4.7 vs lib/geocoder/lookups/geocodio.rb in geocoder-1.4.8
- old
+ new
@@ -8,10 +8,10 @@
"Geocodio"
end
def query_url(query)
path = query.reverse_geocode? ? "reverse" : "geocode"
- "#{protocol}://api.geocod.io/v1.2/#{path}?#{url_query_string(query)}"
+ "#{protocol}://api.geocod.io/v1.3/#{path}?#{url_query_string(query)}"
end
def results(query)
return [] unless doc = fetch_data(query)
return doc["results"] if doc['error'].nil?