toms3t / Propalyzer

Web app that helps investors evaluate residential investment property opportunities
MIT License
68 stars 27 forks source link

Find API for natural disaster info by address #9

Closed toms3t closed 5 years ago

toms3t commented 7 years ago

Good for understanding insurance needs for a new investment opportunity

mohit-0212 commented 7 years ago

Hey, so what exactly do you need?

toms3t commented 7 years ago

Hey Mohit!

Looking for a way to correlate regional natural disasters (earthquake, hurricanes, etc.) to an address so that we can display that information in the app. There’s a site called homefacts.com http://homefacts.com/ (just plug in an address) that provides that info but I don’t think they have an API.

-Tom

On Oct 5, 2017, at 4:46 PM, Mohit Agarwal <notifications@github.com mailto:notifications@github.com> wrote:

Hey, so what exactly do you need?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/toms3t/Propinator/issues/9#issuecomment-334621982, or mute the thread https://github.com/notifications/unsubscribe-auth/AKKlXfplTgErZh-IV5qY0B6CnWcgv3pXks5spWpEgaJpZM4PvreA.

mohit-0212 commented 7 years ago

So I checked the website, it doesn't provide much info on the natural disasters. If it does, maybe we can try and scrape it, if it is allowed. I saw this https://reliefweb.int/help/api. Haven't used it personally, might turn out to be helpful.

toms3t commented 7 years ago

Homefacts doesn't allow scraping per their terms of use, unfortunately. That reliefweb API might work...

mohit-0212 commented 7 years ago

What should I do ?

toms3t commented 7 years ago

Just added a few more issues. Feel free to pick any of them to work on!

bipinkumar919 commented 7 years ago

https://earthquake.usgs.gov/fdsnws/event/1/ they have api for earthquakes . I have used it. Try it.

Nitsujed commented 7 years ago

@toms3t I think FEMA Disaster Declaration API will be our best bet here. It can filter by state and county, which I think is refined enough for a potential buyer and we should be getting from the Zillow API. Based on what it provides, I would suggest we present the user with an aggregate of the amount of times a specific disaster occurred for that county. Ex. Hurricanes -2, Tornadoes -4, etc. I feel like the date of the incidents would be beneficial too, but based on the area and frequency of occurrences, this could become a very long list. Maybe expand it to be Hurricanes -2 (dates of occurrences), Tornadoes -3 (dates), etc.

Here is an example of the fields returned, check the website for more details of each field:

"disasterNumber": 214, "ihProgramDeclared": false, "iaProgramDeclared": true, "paProgramDeclared": true, "hmProgramDeclared": false, "state": "GA", "declarationDate": "1966-03-14T04:00:00.000Z", "disasterType": "DR", "incidentType": "Flood", "title": "FLOODING", "incidentBeginDate": "1966-03-14T04:00:00.000Z", "incidentEndDate": "1966-03-14T04:00:00.000Z", "declaredCountyArea": "Paulding (County)", "hash": "35e0c62ee24166b1532949c2a477e2cb", "lastRefresh": "2017-08-09T13:49:37.980Z", "disasterCloseOutDate": "1967-08-24T04:00:00.000Z", "placeCode": 99223, "id": "5465a01149d3d6a93c732e44"

Nitsujed commented 6 years ago

Todo

Nitsujed commented 6 years ago

Add the ability to show disaster statistics for an address

mohit741 commented 5 years ago

This issue is still open. Can I do something? I'm new to open source contributions. @toms3t

toms3t commented 5 years ago

@mohit741 - I've added disaster information in the latest merge. I invite you to pull down the master branch and run it locally on your machine to test the additional disaster info. Let me know what you think. For now, I'm going to close this issue but feel free to tackle any of the other issues. How about this issue?