Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: make 'user_ip_address' param optional #1

Open
thdoan opened this issue Feb 1, 2016 · 0 comments
Open

Feature request: make 'user_ip_address' param optional #1

thdoan opened this issue Feb 1, 2016 · 0 comments

Comments

@thdoan
Copy link

thdoan commented Feb 1, 2016

If the user doesn't provide their IP, the service should return info for their current IP by default, e.g.:

http://freegeoip.net/json/

Returns this:

{"ip":"116.12.250.1","country_code":"SG","country_name":"Singapore","region_code":"","region_name":"","city":"Singapore","zip_code":"","time_zone":"Asia/Singapore","latitude":1.2931,"longitude":103.8558,"metro_code":0}

http://api.snoopi.io/v1/ currently returns this:

{"remote_address":"116.12.250.1","requested_address":null,"requested_time":"10:28:46 pm","requested_date":"January 31, 2016","CountryCode":null,"Region":null,"Region_Full":null,"City":null,"PostalZip":"09001","TimeZone_Name":null,"Latitude":null,"Longitude":null}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant