usaddress
usaddress copied to clipboard
City not Parsed Correctly
Input: "San Francisco, CA 00000" (Also tested with comma between CA and 00000)
Outputs the PlaceName as "Francisco"
Does the same thing for New York, NY
I am seeing a similar issue with some other addresses. The addresses below are fictional (to avoid PII issues).
12345 North Point Laguna Hills CA 12345 <-- This one parses correctly:
12345 | AddressNumber North | StreetName Point | StreetNamePostType Laguna Hills | PlaceName CA | StateName 12345 | ZipCode
12345 South Point Laguna Hills CA 12345 <-- But this one parses incorrectly:
12345 | AddressNumber South | StreetNamePreDirectional Point Laguna | StreetName Hills | PlaceName CA | StateName 12345 | ZipCode
It looks like it knows that South is StreetNamePreDirectional but North is just StreetName (it is possible that there is no valid North Point in Laguna Hills CA). But I thought it was agnostic of if it is a valid address or not? Is that not so?
I'm having the same issue as well. New York, NY parsed the city as just 'YORK'.
I tried adding commas between address elements to see if that makes it easier to classify elements but that hasn't worked.
Run into this with Key West FL as well.