Skip to content

Analyzing traffic in Basel based on public data and plotting it with Datawrapper

License

Notifications You must be signed in to change notification settings

jonock/trafficbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trafficbs

Analyzing traffic in Basel based on public data and plotting it with Datawrapper

Image of charts

Data Gathering

  • CSV data was downloaded from the open data portal of the canton Basel-Stadt
  • Historic data and recent data was merged into one dataset
  • Dailiy updates are polled via the JSON API of the data portal and then merged with the main dataset

Processing

  • Subsets of the datasets are made and totals for each day calculated
  • Rolling averages are added

Visualisation

  • The datakicker script allows the direct upload to Datawrapper
  • Datawrapper token is stored in the 'credentials.py' file
  • New charts can be created by the script and added to a 'chardadmin' file which is used to keep an overview of all the charts
  • 'script.py' serves as a daily script that can be run with a cronjob

The result is published here: rideable.ch

About

Analyzing traffic in Basel based on public data and plotting it with Datawrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages