Struct ip_api::GeoIp[][src]

pub struct GeoIp { /* fields omitted */ }

Information about an IP address.

Methods

impl GeoIp
[src]

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

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

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

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

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

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

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

Get the location as a tuple of latitude and longitude.

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

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

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

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

Get whether the IP is a cellular connection.

Get whether the IP is a known proxy.

Trait Implementations

impl Debug for GeoIp
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for GeoIp

impl Sync for GeoIp