Skip to content
Snippets Groups Projects
Commit 2d6cf70b authored by Alex Reisner's avatar Alex Reisner
Browse files

It's "Google Geocoding API", not "Geocoder API"

parent e0cc8e7d
No related branches found
No related tags found
No related merge requests found
......@@ -50,16 +50,16 @@ module Geocoder
begin
doc = ActiveSupport::JSON.decode(fetch_data(query, reverse))
rescue SocketError
warn "Google Geocoder API connection cannot be established."
warn "Google Geocoding API connection cannot be established."
rescue TimeoutError
warn "Google Geocoder API not responding fast enough " +
warn "Google Geocoding API not responding fast enough " +
"(see Geocoder::Configuration.timeout to set limit)."
end
case doc['status']; when "OK"
doc
when "OVER_QUERY_LIMIT"
warn "Google Geocoder API error: quota exceeded."
warn "Google Geocoding API error: quota exceeded."
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment