This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently on CityBikes API, electric bikes seem to be supported on 4 networks only, as evidenced in these files : - pybikes/bicing.py - pybikes/smovengo.py - pybikes/keolis.py - pybikes/smartbike.py It's not clear if it's standard but every one of them use the same architecture : the 'extra' JSON item of a station contains the two following sub-items : - 'has_ebikes' : boolean - 'ebikes' : integer Since on some networks the 'has_bikes' value is computed from the 'ebikes' value being 0 or not 0, only this very data is relevant. This commit add the 'ebikes' data as Station class's attributes as well as stations table's columns (upgrade database to version 2). It's copied from remote object if it exists, otherwise it is null.
- Loading branch information
1 parent
7a999f4
commit 4f1e5e7
Showing
4 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters