Expand description
§BigDataCloud Rust SDK
Official Rust SDK for BigDataCloud APIs.
§Quick Start
use bigdatacloud::Client;
let client = Client::from_environment().unwrap();
// IP Geolocation
let geo = client.ip_geolocation.get(Some("1.1.1.1"), "en").unwrap();
println!("{}", geo.location.unwrap().city.unwrap_or_default());
// Reverse Geocoding
let place = client.reverse_geocoding.reverse_geocode(-33.87, 151.21, "en").unwrap();
println!("{}", place.city.unwrap_or_default());