#geolocation #ip #location

ipinfodb

Rust wrapper for ipinfodb geolocation api

2 releases

Uses old Rust 2015

0.1.1 May 23, 2018
0.1.0 May 23, 2018

#44 in #geolocation

MIT/Apache

7KB
55 lines

ipinfodb-rs

Rust wrapper for ipinfodb api.

Usage

extern crate ipinfodb;

// query for current ip
ipinfodb::query("YOUR_API_TOKEN", None);

// or you can specify ip to check geolocation for
ipinfodb::query("YOUR_API_TOKEN", Some("8.8.8.8".parse()?));

License

MIT/Apache-2.0

Dependencies

~15–24MB
~422K SLoC