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

Street addresses do not parse if they end in "United States" #37

Open
zhon opened this issue Dec 7, 2016 · 1 comment
Open

Street addresses do not parse if they end in "United States" #37

zhon opened this issue Dec 7, 2016 · 1 comment

Comments

@zhon
Copy link

zhon commented Dec 7, 2016

text = '3120 W 1200 N, WEST POINT, Utah 84015 United States'
StreetAddress::US.parse text                            #=> nil
@ellery
Copy link

ellery commented Jul 13, 2017

This issue seems to be resolved in the current master branch. I added the current master branch in my Gemfile and was able to Parse addresses ending in "United States"

 text = '3120 W 1200 N, WEST POINT, Utah 84015 United States'
 StreetAddress::US.parse text     
 => #<StreetAddress::US::Address:0x007fc951df3c08 @number="3120", @street="1200", @prefix="W", @suffix="N", @city="West Point", @state="UT", @postal_code="84015", @redundant_street_type=true, @street_type=nil> 

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

2 participants