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

Geocoding validation #74

Merged
merged 4 commits into from
Aug 30, 2018
Merged

Geocoding validation #74

merged 4 commits into from
Aug 30, 2018

Conversation

toolness
Copy link
Collaborator

@toolness toolness commented Aug 30, 2018

This uses geosearch to attempt to validate the user's address in onboarding step 1.

If the geosearch service is unavailable for some reason, we note this by setting address_verified to False in the user's session, and allow them to continue onboarding, so the user isn't blocked from signing up.

However, if geosearch is available and doesn't give us any results, we raise an error in the form.

If geosearch is available, and gives us results, we set the user's address in the form's cleaned_data (and thus the user session) to the house number and street name of the first result.

@toolness toolness merged commit 66e9d63 into master Aug 30, 2018
@toolness toolness deleted the geocoding-validation branch August 30, 2018 17:18
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

Successfully merging this pull request may close these issues.

1 participant