Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/zdavatz/covid2019_ch_map
- Owner: zdavatz
- License: gpl-3.0
- Created: 2020-03-12T14:43:51.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T18:09:57.000Z (4 months ago)
- Last Synced: 2024-09-10T20:24:20.202Z (4 months ago)
- Topics: api, covid-2019, data, map, switzerland, twitter
- Language: JavaScript
- Homepage:
- Size: 3.13 MB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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