Skip to content

populist-vote/geocodio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Geocodio

A client library for the Geocodio API

Usage

Geocode

use geocodio::GeocodioProxy;

fn main() {
    let geocodio = GeocodioProxy::new().unwrap());
    let response = geocodio
        .geocode(
            AddressParams::AddressInput(AddressInput {
                line_1: "Black Rock Desert".to_string(),
                line_2: None,
                city: "Gerlach".to_string(),
                state: "NV".to_string(),
                country: "US".to_string(),
                postal_code: "89412".to_string(),
            }),
            Some(&["acs-economics", "zip4"]),
        )
        .await
        .unwrap();
   println!(
        "Burning Man is located at the coordinates: ({}, {})",
        response.results[0].location.latitude, response.results[0].location.longitude
    )
}

About

A client library for the Geocodio API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages