stop_without_stop_time fires for platform stops used only by GTFS-Realtime assigned_stop_id
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
Start with LocationHasStopTimesValidator.java and inspect how it identifies stops referenced by stop_times.txt and applies the existing location group exemption. Update the warning logic for the sibling platform stops described in the proposal, then run the validator tests covering StopWithoutStopTimeNotice. Done when qualifying stops no longer produce the warning while unrelated stops without stop times still do.
Written by the indexing model from the issue text.
Description
Summary
stop_without_stop_time (WARNING) fires for platform stops that a feed publishes only so that GTFS-Realtime can assign them through TripUpdate.StopTimeUpdate.StopTimeProperties.assigned_stop_id. Those stops are intended, and the GTFS-Realtime reference describes this exact use: assigned_stop_id "is intended to be used for platform assignments by using a stop_id that belongs to the same station as the stop originally defined in GTFS stop_times.txt". A static feed can't name such a stop in stop_times.txt without dropping the stop the schedule really uses, so the warning can't be fixed in the feed.
Current behavior
LocationHasStopTimesValidator emits StopWithoutStopTimeNotice for every location_type 0 stop that stop_times.txt doesn't reference. The only exemption is stops reached through location_group_stops.txt (#1883).
Minimal example
stops.txt:
stop_id,stop_name,stop_lat,stop_lon,location_type,parent_station,platform_code
NHV:station,New Haven,41.2978,-72.9265,1,,
NHV,New Haven,41.2978,-72.9265,0,NHV:station,
NHV:track:1,New Haven Track 1,41.2978,-72.9265,0,NHV:station,1
NHV:track:2,New Haven Track 2,41.2978,-72.9265,0,NHV:station,2
stop_times.txt references only NHV, and a TripUpdate sets assigned_stop_id: "NHV:track:2" for that stop time. By the logic above, stop_without_stop_time fires for NHV:track:1 and NHV:track:2. With v8.0.1, a real feed built this way gets 35 of these notices, one for every platform it publishes and none for anything else.
Proposal
Don't emit stop_without_stop_time for a location_type 0 stop that:
- has a
parent_station, and - has a non-empty
platform_code, and - has a sibling (another child of the same
parent_station) thatstop_times.txtdoes reference.
That combination is what a realtime platform assignment needs, and a typo in stop_times.txt, which this notice exists to catch, is unlikely to produce it. If a silent exemption is too broad, an INFO-level notice for such stops would keep them visible without the warning.
- Dominant language
- Java
- Stars
- 426
- Forks
- 127
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 27
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MobilityData/gtfs-validator
-
Update csvRowNumber consistently across noticesPossibly taken @JooaoGui claimed this 5 days ago. Openstatus: Ready
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MobilityData/gtfs-validator#2254 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
MobilityData/gtfs-validator#2199 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
new rule
Difficulty 3/5 1-2 days Newbie friendliness 58/100
MobilityData/gtfs-validator#2268 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
MobilityData/gtfs-validator#2258 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement new rule status: Blocked
Difficulty 5/5 Over a week Newbie friendliness 42/100
MobilityData/gtfs-validator#2239 ·
Maintainers usually reply within 1 day
All issues in MobilityData/gtfs-validator
Similar issues
-
0. Needs triage enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
davidfercas/opendcanard#34 ·
-
good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 90/100
erkamyaman/rust-anything#702 ·
Maintainers usually reply within 1 day
-
beginner build dependencies difficulty: easy good first issue hacktoberfest help wanted size/S testing up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 94/100
-
Update CHANGELOG.mdOpen
Difficulty 1/5 Under an hour Newbie friendliness 84/100
OpenConext/OpenConext-oidcng#373 ·