Struct ip_api::GeoIp [] [src]

pub struct GeoIp { /* fields omitted */ }

Information about an IP address.

Methods

impl GeoIp
[src]

[src]

Get information on an IP address or domain name. If no host is provided then it will return information on your current IP.

[src]

Get the country. (e.g. "United States")

[src]

Get the country code. (e.g. "US")

[src]

Get the region. (e.g. "CA" or "10")

[src]

Get the region name. (e.g. "California")

[src]

Get the city. (e.g. "Mountain View")

[src]

Get the zip code. (e.g. "94043")

[src]

Get the location as a tuple of latitude and longitude.

[src]

Get the timezone. (e.g. "America/Los_Angeles")

[src]

Get the internet service provider. (e.g. "Google")

[src]

Get the organization. (e.g. "Google")

[src]

Get the as number and name. (e.g. "AS15169 Google Inc.")

[src]

Get whether the IP is a cellular connection.

[src]

Get whether the IP is a known proxy.

Trait Implementations

impl Debug for GeoIp
[src]

[src]

Formats the value using the given formatter.