Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Detect when no vehicles exist but service is scheduled #390

Open
mcplanner-zz opened this issue Dec 1, 2020 · 2 comments
Open

Detect when no vehicles exist but service is scheduled #390

mcplanner-zz opened this issue Dec 1, 2020 · 2 comments
Labels
Milestone

Comments

@mcplanner-zz
Copy link

Summary:
I ran the validator on a feed that is blank by design, and no error was given.

Steps to reproduce:
Bay Area Rapid Transit (BART) prefers to not produce a vehicle position feed because they're concerned about physical security. Their regional agency (MTC) produces vehicle positions, trip updates, and alerts on behalf of all their local agencies, including BART. I plugged in the vehicle position and BART identifiers in their URL format (http://api.511.org/transit/vehiclepositions?api_key=[key]&agency=BA) and put this URL in the validator. No errors were given, which made me assume it was just a really good feed.

Expected behavior:
I expected some indication that the API wasn't returning anything at all.

Observed behavior:
The validator returned 0 errors.

Platform:
MacOS Catalina 10.15.7
Java version: 11.0.5
Chrome version 86.0.4240.80

@barbeau
Copy link
Member

barbeau commented Dec 1, 2020

@mcplanner Thanks for opening this! No errors = perfect! :)

Could you attach the .pb file that is returned (just from putting the URL in a browser) in a zip file, or if you can see the results in plain text in the validator, paste the plain text?

I'm curious if there is some content (i.e., a header) and no vehicles, or if the entire feed is empty.

If the header is there but no vehicles, it might be challenging to tell the difference between this type of feed and a normal situation where an agency isn't running service (e.g., in the middle of the night) - we'd need to compare against static feed to see if there is service running. Maybe this would be better presented as % coverage of trips shown as active in the static schedule data.

Possible related issues:

@barbeau barbeau changed the title No indication given if a RT feed is blank Detect when no vehicles exist but service is scheduled Dec 1, 2020
@barbeau barbeau added this to the v1.0 milestone Dec 1, 2020
@mcplanner-zz
Copy link
Author

Here you go. Thank you!
vehiclepositions.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants