Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C covid19india-react
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • covid19india
  • covid19india-react
  • Merge requests
  • !1248

Feat: Map essentials in State

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/aswaathb/publish into essentials Apr 18, 2020
  • Overview 3
  • Commits 11
  • Pipelines 0
  • Changes 48

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

State Page Initial state_init Seached state_search

Essentials Page Initial essentials_notable w/ Table essentials_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.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/aswaathb/publish