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 #130

Closed
wants to merge 5 commits into from

Conversation

elucherini
Copy link
Collaborator

@elucherini elucherini commented Dec 23, 2024

Description

Implementing issue #128.

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 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

Tsunami

@elucherini elucherini marked this pull request as ready for review December 23, 2024 05:12
@elucherini elucherini requested a review from agennadi December 23, 2024 05:12
@elucherini
Copy link
Collaborator Author

@agennadi docker build failing due to env-file missing in the artifacts?

@elucherini
Copy link
Collaborator Author

Closing as the CI pipeline doesn't work from forks.

@elucherini elucherini closed this Dec 23, 2024
@elucherini elucherini mentioned this pull request Dec 23, 2024
8 tasks
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