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

Adding country at the end of an address makes parsed address set city to street and street to prefix #25

Open
rizowski opened this issue Apr 16, 2019 · 1 comment

Comments

@rizowski
Copy link

Given the following:
1800 N, Lehi, UT 84043, USA

I would expect to see

{
  number: '1800',
  street: 'N',
  city: 'Lehi',
  state: 'UT',
  zip: '84043'
}

Instead I get:

{
	number: '1800',
  prefix: 'N',
  street: 'Lehi',
}

Should USA just be omitted? Given that this just parses US addresses?

@varadara
Copy link
Contributor

Correct. You just need to remove the country at the end.

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