Created by: aswaathb
Description of PR Wanted to add a feature to map the essentials using the users location. I geocoded the resources1 a couple days ago to get the locations for each essential entry and I used one of Dark Sky App's modules that efficiently finds the k-nearest-neighbours. Mapping these based on categories with custom icons.
This does a knn search for medical facilities (hospitals and labs) separately to the rest of the essentials to make ensure they are prioritized.
I initially developed it to be a successor to the v1 essentials page, but I've now adopted it to fit as a component into the state and essential pages.
Type of PR
-
Bugfix -
New feature
Relevant Issues
Fixes #848 (closed)
Checklist
-
Compiles and passes lint tests -
Properly formatted -
Tested on desktop -
Tested on phone
Screenshots
Essentials Page Initial w/ Table
[1] The geocoded data was pulled on April 13 from the the API. It has become much larger with a couple of new additions to the categories.