usaddress
usaddress copied to clipboard
Handling a directional in an Apt/Unit number
This is parsing very nicely for the most part but not when there is a directional in the Unit/Apt number.
355 8TH AVE APT 15E NewYork NY 10001
Number: 355 Street: 8TH AVE APT 15 PostDirectional: E SecondaryNumber: SecondaryUnit: Suffix:
Swap the Apt to 15F and it works great NSEW all get munged. I am not smart enough to figure out the regex to fix that.
--