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

Create APIs for address risk #131

Merged
merged 9 commits into from
Dec 24, 2024
Merged

Create APIs for address risk #131

merged 9 commits into from
Dec 24, 2024

Conversation

elucherini
Copy link
Collaborator

@elucherini elucherini commented Dec 23, 2024

Description

Implementing issue #128. Reopening from #130.

Three APIs with related tests:

  • API that, given an address, tells whether it is a soft story
  • API that, given an address, tells whether it is in a liquefaction seismic zone
  • API that, given an address, tells whether it is in a zone at risk of tsunami

Translating the address obtained through MapBox autocomplete into a geometrical Point could be handled by the frontend (so we keep all MapBox-related stuff in the frontend), so it is currently out of scope.


Also added pre_commit to requirements-dev.txt.

Type of changes

  • Bugfix
  • Chore
  • New Feature

Testing

  • I added automated tests
  • I think tests are unnecessary

How to test

  • Run app

Soft-story

Liquefaction

Not required, but oh well.

Tsunami

Seismic hazard

@elucherini elucherini requested a review from agennadi December 23, 2024 05:29
@elucherini elucherini merged commit 5268aba into master Dec 24, 2024
3 checks passed
@elucherini elucherini deleted the feature/128 branch December 24, 2024 04:13
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.

2 participants