postcode 0.1.1

Postcode & Geolocation API for the UK
Documentation
1
2
3
4
5
6
7
8
use postcode::Postcode;

#[async_std::main]
async fn main() {
    let post = Postcode::random().await.unwrap();

    println!("{} ({}, {}) -> ({}, {})", post.postcode, post.region, post.country, post.latitude, post.longitude);
}