ERRORGTFS Schedule notice

A scheduled stop refers to the wrong location type

location_with_unexpected_stop_time
Severity
ERROR
Files to check
2
Report fields
4
Documentation
Curated

Diagnosis

What this notice means

location_with_unexpected_stop_time is an error in a GTFS Schedule validation report: a scheduled stop refers to the wrong location type. Check stop_times.txt and stops.txt.

A stop_times.stop_id points to a location whose location_type is neither stop/platform (0) nor empty.

Operational effect

Why it matters

The trip refers to a station container, entrance, or another location where this stop-time reference is not allowed.

Scope

Files to check and report fields

Report fieldTypeMeaning
csvRowNumberintegerThe row number of the faulty record from stops.txt.
stopIdstringThe id of the faulty record from stops.txt.
stopNamestringThe stops.stop_name of the faulty record.
stopTimeCsvRowNumberintegerThe row number of the faulty record from stop_times.txt.

Repair

How to fix it

  1. 1

    Find the reported stop-time row and its entry in stops.txt.

  2. 2

    Reference the actual stop/platform used by the trip. Change location_type only if the location itself was classified incorrectly.

  3. 3
    Check the result

    After a repair, rebuild the archive and validate it again. Confirm that the affected records are correct and that no new related notices appeared. A reviewed warning or informational notice may remain when it describes intentional, supported data.

Re-check your feed in the browserFree, no upload for a file you pick.

Sources

References