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

Determine Domestic Address format when searching with Google autocomplete #136

Open
devjk1 opened this issue Apr 14, 2021 · 0 comments
Open

Comments

@devjk1
Copy link
Contributor

devjk1 commented Apr 14, 2021

The issue with Google autocomplete on Places API is
if we search without a 'street number', API will return partial addresses (e.g. no street number, no zip too IIRC)
if we search with a 'street number', we can get a full address, then store directly.

Another issue is determining if complete addresses can start without a number (e.g. PO box, if we store those)
if we do store addresses that start without a number, we could

  • make another form and fields for those edge cases (e.g. user checks PO box checkbox, and we show a different form)
  • backend-validate response contains all fields.. this could mean we have a 'complete address'

if we only store addresses that start with a number, we can

  • frontend-validate query on starts with a number, then store response directly as DomesticAddress model

After a cursory search, I believe complete addresses need a street number. Whether or not 'street numbers' can start with a letter is another concern.

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