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

Consider ZERO_RESULTS status valid.

parent 2fa40cdb
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,8 @@ module Geocoder::Lookup
end
def valid_response(response)
super(response) && parse_json(response.body)["status"] == "OK"
status = parse_json(response.body)["status"]
super(response) and ['OK', 'ZERO_RESULTS'].include?(status)
end
private # ---------------------------------------------------------------
......
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