#geography

geo-ip

Acquire geography location by IP address

1 unstable release

0.1.0 Aug 29, 2023

#36 in #geography

MIT license

10KB

use geo_ip;
use serde_json::Value;

#[tokio::main]
async fn main() {
    let r = geo_ip::geo_ip::<Value>(None).await.unwrap();
	println!("{r:#?}");

	let r = geo_ip::geo_ip::<Value>(Some("1.1.1.1".to_owned())).await.unwrap();
}

Dependencies

~6–18MB
~249K SLoC