Comments (7)
So, good news.
We have a few days of data for the stops of three bus lines:
- 19 in Jerusalem (from Ein Karem to Har Hazofim) - 40 stops
- 480 from Jerusalem to Tel-Aviv - 3 stops
- 947 from Haifa to Jerusalem - 29 stops
Because we poll stops (not lines) we also have data for all other buses that stop at the same stops.
The data is accessible through re:dash, in the arrivals table (edit: table renamed to siri_arrivals).
The fields of the table aren't self explanatory,
so you may need to read the doc. If you do, how about summarising the relevant parts for everyone else?
We also need to start looking the the data. Does it make sense at all? There may be problems with the script the fetches the data and inserts to the db...
from open-bus.
Hi,
I made a short description of what I could make of the tables that we got from siri.
From what I understand that's not all tables. Is there somewhere I could get at least the names of the tables available? I quickly scanned the doc, but it's more about the connection between different parts of the process and not about what's available there.
https://docs.google.com/spreadsheets/d/1Hi2DvVzpz_LVUMEBZ0qMOxp4jyXcRF4jlojK5Uioey8/edit?usp=sharing
from open-bus.
@OrLichter ,
The only tables coming from Siri are arrivals & responses.
Response is the unprocessed xml. Arrivals is the the parsed response.
You can see the script that generated them here: https://github.com/hasadna/open-bus/blob/master/siri/fetch_and_store_arrivals.py
The rest of the tables are less relevant at for this task I think. They mostly have to do with the static (planning) data (GTFS).
I made a list of the tables and what they are about here.
from open-bus.
Amir Carmel of the MoT suggested a method for finding bus locations. I am not posting it here because GitHub masses up RTL, but it's available on the mailing list here:
https://groups.google.com/forum/#!topic/openbus-israel/KC60TZu1GyI
I haven't made much effort to understand what he is suggesting. It does seem to me that it might require keeping polling other information than what we currently have in the DB.
Edit: Amir's mail talks about the VehiceLocation
field. This field should contain the bus exact location (coordinate). However it's an optional field and we don't receive it. I have written to Amir asking clarifications about that. If we can receive this field this task will become much much easier.
from open-bus.
Good news: apparently there are some extra fields in the SIRI reply that we haven't been keeping in the past.
In particular vehicle_ref
is the license number of the bus! This should make tracking the buses much easier.
Can anyone (@OrLichter? @efratoio?) have a look at the problem again and see if it's now more feasible?
Notes:
- I changed the relevant database tables. The main table is now called
siri_arrivals
. (There's alsosiri_raw_response
that contains the original XML) - I wrote documentation about SIRI. I hope it's more readable than the PDFs supplied by the MOT.
from open-bus.
This issue isn't up to date with the newest development.
I am closing this and will create new more relevant issues.
from open-bus.
Closing for now, will submit new up to date issue.
from open-bus.
Related Issues (20)
- Can't access siri br file HOT 2
- Duplicates rows in the db HOT 1
- API call gets an error: "QueuePool limit of size 5 overflow 10 reached" HOT 4
- Missing rows in siri_vehicle_locations HOT 18
- datacity stride project HOT 2
- siri data should reflect changes in OriginAimedDepartureTime / siri_ride__scheduled_start_time HOT 4
- permission to push to open-bus-stride-client HOT 2
- Adding data for route geometry is extremely important HOT 11
- stride api siri vehicle locations should allow to filter by lont/lat bounding box HOT 1
- get number of results for each api call HOT 1
- error in stride api gtfs_stop/get HOT 2
- השלמות stride
- stride additional tasks HOT 1
- all processing should be idempotent and make sure data is available for last X days HOT 2
- MOT problems with SIRI and GTFS data HOT 1
- StrideRequestFailedException: Failure response from Stride API (500): QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30.00 HOT 1
- add date/timestamp in /gtfs_rides/list HOT 3
- stride-api feature request: add parameter to siri_ride to enable querying gtfs_ride_id HOT 1
- should have an efficient method to get all vehicle locations in geo area in a day
- filtering unrealistic duration_minutes values from siri_rides
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-bus.