Skip to content
/ jitenshea Public
forked from garaud/jitenshea

Bicycle-sharing data analysis

License

Notifications You must be signed in to change notification settings

kant/jitenshea

 
 

Repository files navigation

Jitenshea: bicycle-sharing data analysis

License: MIT

logo

In Japanese:

Jitensha (bicycle) + Shea (share) = Jitenshea

Analyze bikes sharing station data some cities where there are Open Data.

You have three parts in this project:

  • a data pipeline and data processing with luigi to get, transform and store data

  • Some statistics and Machine Learning to analyze the timeseries and predict the bikes availability for each station.

  • Web application to get and visualize some data through a REST API

screenshot

Data

Open Data from French cities Bordeaux and Lyon:

Some luigi tasks can be called every 10 minutes for instance to gather the bicycle-sharing stations data. Another one is called every day to aggregate some data. You can use cron-job to carry out this stuff.

Contributions for other cities are welcomed! e.g. Nantes, Paris, Marseille, etc.

Configuration

A configuration file sample can be found at the root directory config.ini.sample. Copy it into the jitenshea directory , rename it into config.ini and update it.

It is used for the database access, some tokens for API, etc.

Requirements

PostgreSQL database with PostGIS. You must have the shp2pgsql command.

All Python requirements are specified in the setup.py file.

Create a new virtualenv, then do pip install . in the project root directory.

For Javascript and CSS dependencies, you have to install yarn then launch yarn install.

Development

  • Install the extras dependencies, e.g. pip install -e ."[dev]".
  • Launch test with pytest.

Logo

Logo was designed by Sylvain. Thanks to him!

About

Bicycle-sharing data analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 73.1%
  • JavaScript 13.1%
  • HTML 11.8%
  • CSS 2.0%