#gis

bin+lib usaddress

Parse US Addresses into parts

1 unstable release

0.1.0 Jun 28, 2021

#76 in #gis

Download history 1/week @ 2024-09-03 20/week @ 2024-09-10 24/week @ 2024-09-17 89/week @ 2024-09-24 15/week @ 2024-10-01 29/week @ 2024-10-08 20/week @ 2024-10-15 45/week @ 2024-10-22

95 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.8–4.5MB
~74K SLoC