Giter Club home page Giter Club logo

covid19-in's Introduction

covid19-in

District-wise map of CoVID19 cases in India

Data is compiled using state bulletins and official sources by all the volunteers at covid19india.org, see the map live here

Uses the following JS libraries

  • leaflet
  • esri leaflet plugin
  • jQuery
  • bootstrap
  • popper
  • tabletop

Data was being pulled from a public google sheet but now has moved to the covid19india.org api

covid19-in's People

Contributors

devdattat avatar guneetnarula avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

covid19-in's Issues

Initial page loading

We can either improve inital page loading or we can show some stuff like news/captions/quotes related to COVID-19.

New districts formed in 2019

Duplicate of https://github.com/covid19india/CovidCrowd/issues/7

  • Local government directory (LGD) reports 11 districts in Mizoram (instead of 8; hnahthial, khawzawl, saitual are three new districts formed in June 2019)

  • LGD reports 33 district in Tamil Nadu (instead of 32; kallakurichi district was formed in november 2019)

  • LGD reports 20 districts in J&K (instead of 22; mirpur and muzaffarabad not reported by LGD)

  • Keeping the two districts in POK, we should have 731 districts = 729 in /js/districts_729.js - 2 duplicates (assam and gujarat, see #5) + 3 mizoram + 1 tamil nadu

  • If we want to be consistent with LGD there should be 729 districts (exclude 2 districts from J&K), no of districts in states should be:

----------------------------------------
    State Name (In English) |      Freq.
----------------------------+-----------
andaman and nicobar islands |          3
             andhra pradesh |         13
          arunachal pradesh |         25
                      assam |         33
                      bihar |         38
                 chandigarh |          1
               chhattisgarh |         27
     dadra and nagar haveli |          1
              daman and diu |          2
                      delhi |         11
                        goa |          2
                    gujarat |         33
                    haryana |         22
           himachal pradesh |         12
          jammu and kashmir |         20
                  jharkhand |         24
                  karnataka |         30
                     kerala |         14
                     ladakh |          2
                lakshadweep |          1
             madhya pradesh |         52
                maharashtra |         36
                    manipur |         16
                  meghalaya |         11
                    mizoram |         11
                   nagaland |         11
                     odisha |         30
                 puducherry |          4
                     punjab |         22
                  rajasthan |         33
                     sikkim |          4
                 tamil nadu |         33
                  telangana |         33
                    tripura |          8
              uttar pradesh |         75
                uttarakhand |         13
                west bengal |         23
----------------------------------------

No of districts in js/districts_729.js is:

-------------------------------
 properties/stname |      Freq.
-------------------+-----------
 andaman & nicobar |          3
    andhra pradesh |         13
 arunachal pradesh |         25
             assam |         34
             bihar |         38
        chandigarh |          1
      chhattisgarh |         27
dadra & nagar have |          1
       daman & diu |          2
             delhi |         11
               goa |          2
           gujarat |         34
           haryana |         22
  himachal pradesh |         12
   jammu & kashmir |         22
         jharkhand |         24
         karnataka |         30
            kerala |         14
            ladakh |          2
       lakshadweep |          1
    madhya pradesh |         52
       maharashtra |         36
           manipur |         16
         meghalaya |         11
           mizoram |          8
          nagaland |         11
            odisha |         30
        puducherry |          4
            punjab |         22
         rajasthan |         33
            sikkim |          4
        tamil nadu |         32
         telangana |         33
           tripura |          8
     uttar pradesh |         75
       uttarakhand |         13
       west bengal |         23
-------------------------------

Duplicates in /js/districts_729.js

https://github.com/guneetnarula/covid19-in/blob/master/js/districts_729.js contains 727 districts (instead of 729). Duplicates in terms of propertiesstname propertiesdtname propertiesdt_code are as follows:

  +---------------------------------------------------------------+
  | group:   obs:   p~stname          propertiesdtname   ~dt_code |
  |---------------------------------------------------------------|
  |      1    341      assam   south salmara mancachar        758 |
  |      1    342      assam   south salmara mancachar        758 |
  |      2    223    gujarat                     botad        726 |
  |      2    224    gujarat                     botad        726 |
  +---------------------------------------------------------------+

use standard state codes

this is minor point but if you are cleaning up the numeric codes, could you please use 28 for andhra pradesh and 37 ladakh. this will make it consistent with standard practice.

  +-------------------------------------+
  | propertiess~me   ~st_code   stc_new |
  |-------------------------------------|
  | andhra pradesh         37        28 |
  | andhra pradesh         37        28 |
  | andhra pradesh         37        28 |
  | andhra pradesh         37        28 |
  | andhra pradesh         37        28 |
  | andhra pradesh         37        28 |
  | andhra pradesh         37        28 |
  | andhra pradesh         37        28 |
  | andhra pradesh         37        28 |
  | andhra pradesh         37        28 |
  | andhra pradesh         37        28 |
  | andhra pradesh         37        28 |
  | andhra pradesh         37        28 |
  |-------------------------------------|
  |         ladakh         38        37 |
  |         ladakh         38        37 |
  +-------------------------------------+

State and district data in maps

Right now the map is showing only district data.
When we select District-level Data than maps should show only district-level data and when we select State-level data than maps should show State-level data.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.