Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PO Boxes not parsed properly #38

Open
etcook opened this issue Aug 29, 2017 · 1 comment
Open

PO Boxes not parsed properly #38

etcook opened this issue Aug 29, 2017 · 1 comment

Comments

@etcook
Copy link

etcook commented Aug 29, 2017

I'm running into an issue where the gem isn't parsing PO Boxes properly

[6] pry(main)> StreetAddress::US.parse("PO Box 253, Cream Ridge NJ 08514-0253")
=> nil

@etcook
Copy link
Author

etcook commented Aug 29, 2017

Looks like the ruby gems version was old, so I'm using the git repo directly, however I'm running into a new issue:

[1] pry(main)> StreetAddress::US.parse("PO Box 253, Cream Ridge, NJ 08514-0253")
=> #<StreetAddress::US::Address:0x007ff2539aadb0 @redundant_street_type=false, @street="Cream", @street_type="Rdg", @Unit="253", @unit_prefix="Po Box">

If it's a PO Box, there is no street, but it's interpreting the city as the street.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant