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

Return a proper reserved result.

parent 2cb19748
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,23 @@ module Geocoder::Lookup
end
def reserved_result(ip)
{"message" => "Input string is not a valid IP address", "code" => 401}
{
"ip": ip,
"latitude": 0,
"longitude": 0,
"city": "",
"timezone": "",
"asn": 0,
"region": "",
"offset": 0,
"organization": "",
"country_code": "",
"country_code3": "",
"postal_code": "",
"continent_code": "",
"country": "",
"region_code": ""
}
end
def api_key
......
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