open-bus
open-bus copied to clipboard
The real GTFS (based on SIRI) project
Quick summary of our last discussions - needs further editing, please add your insights
We want to present real and accurate buses timetable, using SIRI data.
Main pipeline includes -
-
Defining a SiriRide (#174) -
- as for now, we decided to use the simple index of
route_id
,planned_start_datetime
andbus_id
. - needs further investigation if this definition applies for all bus firms (special attention for Dan rides).
- as for now, we decided to use the simple index of
-
Building
SiriRide
,AgencyDay
andRouteDay
Classes for storing SIRI and GTFS data in JSON format.- a first script is ready (Python).
- needs to add
stops_ids
&stops_latlon
attributes toRouteDay
. - Classes data types settings.
- Index; random ID (integer) or meaningful ID (String)?
-
Developing Splunk procedure - daily process for writing Siri and route_stats (GTFS) data to the mentioned Classes.
- how to avoid using the same rows for two consecutive days?
-
Storing SIRI and GTFS data using google Firestore in the mentioned Classes format.
- add the relevant
RouteDay
instance toSiriRide
instances in a list format (for future uses. As for now the list will include only oneRouteDay
instance). - add the GTFS permanent indexes to
SiriRide
instances -route_mkt
,route_direction
,route_alternative
(join based onroute_id
anddate
).
- add the relevant
-
Classification of Siri rides to "good" and "bad" rides ("good" is when the ride is matching the GTFS route).
- a simple model based on specific
SiriRide
instance and the relatedRouteDay
instance is ready -SiriRideAnalyzer
(python). - a connection to Firestore needs to be developed.
- small adjustments in
SiriRideAnalyzer
afterSiriRide
Class will be finally ready.
- a simple model based on specific
-
Estimating bus stops times per SiriRide.
- as for now, @EyalBerger will develop a very simple model, then will move forward to a more accurate one.
-
Predicting buses timetable using historical data.
-
Publishing the real buses timetable in a cool and friendly way.