Expand description

geolocation

Get geolocation information of an IP. Its simple.

geolocation = "0.2.1"

Add to Cargo.toml.

Example

Using geolocation is really quite easy:

use geolocation;
fn main() {
    let ip = "<Put your IP address Here>";
    let info.city = geolocation::find(ip).unwrap();
 
    println!("{:?}", info.city.city);
}

This and more examples are found in the examples directory.

Query Limits

You can send 45 requests per minute.

Fields

The API can get these fields about IP addresses.

Written with love, in Rust.

Structs

Functions