usaddress icon indicating copy to clipboard operation
usaddress copied to clipboard

City not Parsed Correctly

Open benngarcia opened this issue 4 years ago • 4 comments

Input: "San Francisco, CA 00000" (Also tested with comma between CA and 00000)

Outputs the PlaceName as "Francisco"

benngarcia avatar Sep 24 '20 08:09 benngarcia

Does the same thing for New York, NY

benngarcia avatar Oct 02 '20 05:10 benngarcia

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?

arvindram11 avatar Oct 27 '20 18:10 arvindram11

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.

hainesdata avatar Jun 25 '21 15:06 hainesdata

Run into this with Key West FL as well.

FirebornX avatar Aug 06 '21 18:08 FirebornX