Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide GeoJSON data #1

Open
1 of 2 tasks
pescetti opened this issue Mar 12, 2020 · 1 comment
Open
1 of 2 tasks

Provide GeoJSON data #1

pescetti opened this issue Mar 12, 2020 · 1 comment
Assignees

Comments

@pescetti
Copy link
Owner

pescetti commented Mar 12, 2020

Scope

The upstream repository https://github.com/pcm-dpc/COVID-19 already provides CSV and JSON, as well as pure-geography (without data) geojson files.

For many mapping use cases it would be better to have GeoJSON files with embedded data.

Tasks

  • Provide a GeoJSON file for provinces
  • Provide a GeoJSON file for regions
@pescetti pescetti self-assigned this Mar 12, 2020
@pescetti
Copy link
Owner Author

pescetti commented Mar 12, 2020

GeoJSON file for provinces is at https://github.com/pescetti/COVID-19/blob/master/dati-geojson/dpc-covid19-ita-province.geojson

Github's preview is useless as it will only count the number of records (so if we have data for 20 days in Parma it will show a marker on Parma with the number "20"). http://geojson.io will display a more informative preview.

Format of each GeoJSON record:

    {
      "type": "Feature",
      "properties": {
        "id": "PR1583946000",       // Province and time of observation
        "count": 378,               // Number of total cases
        "time": 1583946000          // Time of observation
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          10.32834985,
          44.80107394,
          0
        ]
      }
    },

This allows easy parsing and filtering in mapping applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant