Using data from github.com/wcota/covid19br this project intends to visually show data about the COVID-19 in Brazil.
Note: this is a personal project and I'm not a specialist either in data visualization or in disease spreading, so, take it with a grain of salt.
Deployed at: https://cvid19-back.herokuapp.com/
Currently the API only have two endpoints, so, putting it simply:
Will gather data from: https://github.com/wcota/covid19br/blob/master/cases-brazil-cities-time_changesOnly.csv.
You can use the query paramresponse_type
, the expected values are geojson
or json
, leaving it empty json
will be used.
Will gather data from: https://github.com/wcota/covid19br/blob/master/cases-brazil-cities-time.csv.
You can use the query paramresponse_type
, the expected values are geojson
or json
, leaving it empty json
will be used.
The response uses a general json fromat.
[
{
"city": "São Paulo",
"date": "2020-02-25T00:00:00",
"deaths": 0,
"ibgeID": "3550308",
"location": {
"lat": -23.5329,
"long": -46.6395
},
"newCases": 1,
"newDeaths": 0,
"state": "SP",
"totalCases": 1
},
//...
]
The result uses the geojson format.
{
"type": "FeatureCollection",
"features": [
{
"geometry": {
"coordinates": [
-46.6395,
-23.5329
],
"type": "Point"
},
"properties": {
"city": "São Paulo",
"date": "2020-02-25T00:00:00",
"deaths": 0,
"ibgeID": "3550308",
"newCases": 1,
"newDeaths": 0,
"state": "SP",
"timestamp": 1582588800000,
"totalCases": 1
},
"type": "Feature"
},
//...
]
}