Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
sql
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Jitenshea: bicycle-sharing data analysis

License: MIT

logo

It's an archived repo.

MOVED TO https://gitlab.com/Oslandia/jitenshea

In Japanese:

Jitensha (bicycle) + Shea (share) = Jitenshea

Analyze bikes sharing station data in 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 time series 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 the 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

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •