Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zdavatz/covid2019_ch_map

Create a map of Switzerland and plot the COVID19 data on the map.
https://github.com/zdavatz/covid2019_ch_map

api covid-2019 data map switzerland twitter

Last synced: 2 months ago
JSON representation

Create a map of Switzerland and plot the COVID19 data on the map.

Awesome Lists containing this project

README

        

# covid2019 MAP of Switzerland
Create a map of Switzerland and plot the COVID19 data on the map.

## Use Cases
1. Use the data from [daenuprobst](https://github.com/daenuprobst/covid19-cases-switzerland/blob/master/covid19_cases_switzerland.csv). He parses that data from the [BAG Twitter feed](https://twitter.com/BAG_OFSP_UFSP/).
2. Show the increase in % by Canton
3. Generate a png file.
4. Use Twitter API to post the generated PNG on your timeline.
5. Configure Twitter API so you can add some static text/hashtag to every tweet.
6. Tweet is being posted if there is new data from [daenuprobst](https://github.com/daenuprobst/).
7. Use [t](https://github.com/sferik/t) to create credentials.

## Configuration
- Create ".env" file with Twitter App credentials, you can get it from here: [](https://developer.twitter.com)

```
TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_CONSUMER_TOKEN_KEY=
TWITTER_CONSUMER_TOKEN_SECRET=
```
## Running Modes
Switch between Development and Production mode with simple switch in "main.js".
Production mode to publish the tweet to twitter.

```
App.isProduction = true;
```
## Run
```
$ npm i
$ node main.js
```
## Software used to build the svg images
https://github.com/interactivethings/swiss-maps

## License
[GPLv3.0](https://github.com/zdavatz/covid2019_ch_map/blob/master/LICENSE)

## Resources
* [Post-Codes](https://github.com/gamba/swiss-geolocation/blob/master/post-codes.csv)
* [CH cities](https://simplemaps.com/data/ch-cities)
* [https://github.com/densitydesign/switzerland-institutional-landscape](https://github.com/densitydesign/switzerland-institutional-landscape)
* [Geomapping Howto for Switzerland](https://echarts-maps.github.io/echarts-geomapping-book-en/howtos/switzerland/)
* [KML file of the Swiss Cantons](https://github.com/zdavatz/covid2019_ch_map/files/4358295/kantone_50m.zip) thank you https://github.com/davidoesch