Django app for managing data from the Bixi public bicycle sharing system, also known as Alta Bicycle Share in some US cities and Melbourne.
It supports multiple cities out of the box.
Requirements for django-bixi:
- django-tastypie
- south (required if you plan on using the migrations)
These requirements are expressed in the requirements.txt file and may be installed by running the following command (from within a virtual environment):
pip install -r requirements.txt
django-bixi ships with throttling built in. The following options have to be set in your project's settings.py, as per the documentation: http://django-tastypie.readthedocs.org/en/latest/throttling.html#throttle-options
- BIXI_THROTTLE_AT
- BIXI_TIMEFRAME
- BIXI_EXPIRATION
From within your project's urls, expose the API resources of your choice as per django-tastypie's documentation at http://django-tastypie.readthedocs.org/en/latest/tutorial.html#adding-to-the-api
The updatestations management command allows you to create and update the stations for the city codes passed as arguments separated by a space. Run it through cron to keep your data synchronized.
Upon running syncdb, cities that expose their bike stations data will be automatically inserted into the database. For the moment, only the following cities are included:
- Boston
- Dublin
- London
- Melbourne
- Minneapolis
- Montreal
- Ottawa
- San Francisco Bay Area
- Toronto
- Washington