airq-dev / hazebot

Building the 411 for air quality in the United States: a texting platform accessible to all, that provides actionable local information to protect your and your community.
https://www.hazebot.org/
MIT License
9 stars 1 forks source link

Allow geolocating based on addresses instead of zipcodes #237

Open ianhoffman opened 2 years ago

ianhoffman commented 2 years ago

It would be really useful to be able to tag clients to addresses instead of zipcode centroids, and to aggregate metrics from sensors within X KM from those addresses. This would allow us to send accurate metrics to users in large zipcodes, as is common in rural areas.

It would also require a rather large rearchitecture of how Hazebot works, so... we probably need a proposal first. At the very least we probably want to start storing lat/lon info on clients and using that data to calculate the AQI dynamically when deciding whether to send an alert (though we can keep the old Zipcode way around too). And then we probably need an integration with OpenStreetMaps or the GOOG to get coords data for arbitrary addresses.