-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation of HVV GTFS-RT reveals missing id in VehicleDescriptor #5
Comments
BTW, I observed the same for the BVV feed as you see in the following example output.
|
Thank you!
Yes, unfortunately that's the case for now. Why some trips/vehicles have IDs that don't match the GTFS:
Why Because it uses
No, definitely not. These feeds are experimental, and serve two purposes:
|
Hi @derhuerst , |
Unique identifier for what? A physical vehicle (e.g. a specific bus with a specific license plate)? A trip (a specific vehicle running along a route at a specific point in time)? An arrival/departure at a stop? |
Good question. Indeed, I do not need an identifier to present it on the Dede real-time map. However, after I have consumed any GTFS-RT feed on my server, I store an entity for every vehicle in a database. The front end for the Dede real-time map uses this database to fetch vehicle entities that are presented on the map. Here is the deal: With the current implementation of the database, only unique entities are allowed. Therefore, I am using the I could theoretically change my database. However, I like to have unique entities and would rather figure out a way on how to extract a unique information from the real-time feed that I can use to make my vehicle entities in the database unique. Do you know what I mean? How do you tell vehicles apart when they do not have some sort of unique information? The frond end technology that I have worked with so far (e.g. react) always asks that any field/array/list data has a unique identifier like an index. That means, I did not find a way so far to present vehicles without them having unique identifies. What is your experience? Cheers! |
What is "it" here? A vehicle? If you want to show vehicles instead of trips (keep in mind that often a vehicle will finish the trip and start the next right after) you would have to wait until BTW: With the Berlin/VBB & Hamburg/HVV GTFS-RT feeds we're talking about, the underlying HAFAS data source does not provide a true physical vehicle ID anyways. It provides a "virtual"/made-up vehicle ID though (where AFAIK a vehicle ID will not show up twice at the same time, but one a physical vehicle starts the next trip, it will get a new "virtual" vehicle ID), wich is used in
I think I do, yes.
For now, automatically, you can't. For humans, there's
It definitely makes sense for your app to assume that the data sources provide unique IDs. But if you want to use vehicle IDs, that is a design question: Is your tool rather infrastructure-focused (as in "which public transport vehicle are out there right now?") or traveller-focused (as in "when will my bus arrive?")? |
Yes, I mean vehicles. In the first place, Dede shall show the vehicles out there in real-time. Adding helpful and convenient details like bus/route number, name of transit agency and direction can come later.
That sounds like what I am looking for. As long as the id is unique my database does not get messed up and I do not care about the physical id right now. Please let me know, if I can be of any help. I could do some tests after Eastern. In my eyes it make sense to link TripUpdate to VehiclePosition entities using the mentioned virtual id, as those two feed entities are supposed to match, right? Someone is always looking for a TripUpdate that matches a VehiclePosition or vice versa, right? Cheers! |
Not always: Some feeds only have one of the two or they don't have the notion of trips. But in our case, GTFS-RT built from HAFAS or HAFAS-like data sources, it totally makes sense. Currently, the architecture of |
Hi folks,
Thank you so much for providing and maintaining this repository. Please accept my appreciation!
I am evaluating the GTFS-RT feed for HVV with my own JavaScript command line tool. In the following example output you can see that the 'id' field in the 'VehicleDescriptor' field of the 'VehiclePosition' entity is not set.
Would you say this is normal and state-of-the-art? It is the first time I am consuming a real-time feed wit this field being unavailable. I am also wondering how I can tell vehicles apart when I store them in a database that does not allow duplicates. I appreciate any hints pointing me in the right direction. Cheers!
The text was updated successfully, but these errors were encountered: