addressit icon indicating copy to clipboard operation
addressit copied to clipboard

Fails to parse "N95W18000 Appleton Ave, Menomonee Falls, WI" (PR welcome)

Open ChandanNM opened this issue 8 years ago • 2 comments

We are using this library in our application. Has worked fairly well for most of the US addresses, however fails for certain unusual but valid ones like - "N95W18000 Appleton Ave, Menomonee Falls, WI 53051" or other highway addresses. Can this library be enhanced to handle those ?

ChandanNM avatar Apr 25 '16 20:04 ChandanNM

I've never seen a US street address with a street number with letters in like that. However, I searched for this address and it appears to be real. Strange. This case also fails with a competing parser:

https://www.npmjs.com/package/contact-parser

A pull request would accepted that fixes this case without breaking the other test cases.

markstos avatar Apr 26 '16 00:04 markstos

@ChandanNM, would you like to make a PR on this?

A core concept of the street address number is that it is in-fact a number. This seems like some sort of highway marker where we would need to implement a special construct similar to apartment/unit to handle this.

I'm not familiar with the US Highway Address formats, I did find this spec from USPS, which I assume would contain a specification for the address format. http://pe.usps.com/text/pub28/welcome.htm

digitalcraft avatar Apr 26 '16 03:04 digitalcraft