1 unstable release

0.1.0 Jun 28, 2021

#10 in #st

Download history 4/week @ 2024-03-12 1/week @ 2024-03-26 49/week @ 2024-04-02 1/week @ 2024-05-28 8/week @ 2024-06-04 2/week @ 2024-06-11 32/week @ 2024-06-18 41/week @ 2024-06-25

84 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

~2.9–4.5MB
~74K SLoC