covid19india / covid19india-react

Tracking the impact of COVID-19 in India
https://www.covid19india.org
MIT License
6.86k stars 3.41k forks source link

Can add Covid free district #2516

Open yogesh7401 opened 3 years ago

yogesh7401 commented 3 years ago

Can add Covid free district list It will be use full for user and create relief for district peoples of Covid free districts

How to do ? (My Suggestion) Some state like telungana there is 0 data and API not feed active cases , you get active cases by subracting deceased and recovered cases from Confirmed cases , so there itself check confirmed cases > 0 and active case === 0 and store the district key and display the result as covid free districts

For example

let covidFreeDistrict = []
if(active === 0 && confirmed > 0) {
    covidFreeDistrict.push({districtName,key})
}
prablr79 commented 3 years ago

I agree with @yogesh7401 , indeed its usefull at pan india level for quick travel or emergency movements

prablr79 commented 3 years ago

any thoughts on this request ?

sayna3311 commented 3 years ago

What we can do is, for each state, make a list of covid free districts and render the list on each state's page?

B-AYUSHMAN-PRUSTY commented 3 years ago

hey i am interested to add covid free district but i don't know how to do. Can you help me to add district