1 unstable release

0.1.0 Jun 28, 2021

#10 in #st

26 downloads per month

Apache-2.0

69KB
868 lines

Rust port of usaddress

Install

cargo install usaddress

or

[dependencies]
usaddress = "0.1"

Contains a binary that can tag an address

usaddress "170th St and Broadway Ave New York, NY 10033"

<AddressString><AddressNumber>170th</AddressNumber><StreetName>St</StreetName><StreetName>and</StreetName><StreetName>Broadway</StreetName><StreetNamePostType>Ave</StreetNamePostType><PlaceName>New</PlaceName><PlaceName>York,</PlaceName><StateName>NY</StateName><ZipCode>10033</ZipCode></AddressString>

or usage of the library


match usaddress::parse("170th St and Broadway Ave New York, NY 10033") {
    Ok(tagged_addresses) => {
        ...
    },
    Err(e) => {
        ...
    }
}

Dependencies

~3–4.5MB
~75K SLoC