parse-address icon indicating copy to clipboard operation
parse-address copied to clipboard

Doesn't identify 9 digit zips

Open yankeeinlondon opened this issue 8 years ago • 3 comments

If I type 90291-3064 in as the address (either by itself or at the end of a street address) I'd expect the parser to be able to identify this as a Zip+4 format but instead it either truncates the +4 part of the zip when it is hanging off a street address or associates the +4 part as being a street number.

yankeeinlondon avatar Dec 09 '17 00:12 yankeeinlondon

In the original Perl implementation the ZIP+4 code is parsed but later stripped out. This library also behaves the same. But I'm open to keep the ZIP+4 code as additional property. Any thoughts on the property name? May be plus4?

hassansin avatar Dec 15 '17 16:12 hassansin

plus4 or zip4 would both make sense to me. Please do let me know if you are able to do this as I’m certainly interested.

Thanks,

Ken

On 15 Dec 2017, 16:19 +0000, Hassansin [email protected], wrote:

In the original Perl implementation the ZIP+4 code is parsed but later stripped out. This library also behaves the same. But I'm open to add ZIP+4 code as additional property. Any thoughts on the property name? May be plus4? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

yankeeinlondon avatar Dec 15 '17 17:12 yankeeinlondon

Can you try it on zipplus4 branch? https://github.com/hassansin/parse-address/tree/zipplus4

hassansin avatar Dec 16 '17 23:12 hassansin