ERRORGTFS Schedule notice

A location points to the wrong kind of parent

wrong_parent_location_type
Severity
ERROR
Files to check
1
Report fields
9
Documentation
Curated

Diagnosis

What this notice means

The parent_station ID exists, but the parent's location type is not allowed for the child.

Operational effect

Why it matters

Apps cannot interpret the station hierarchy correctly.

Scope

Files to check and report fields

Report fieldTypeMeaning
csvRowNumberintegerThe row number of the faulty record.
expectedLocationTypestringThe expected location type of the faulty record.
locationTypestringThe faulty record's `stops.location_type`.
parentCsvRowNumberintegerThe row number of the faulty record's parent.
parentLocationTypestringThe location type of the faulty record's parent.
parentStationobjectThe id of the faulty record's parent station.
parentStopNamestringThe stop name of the faulty record's parent.
stopIdstringThe id of the faulty record.
stopNamestringThe faulty record's `stops.stop_name`.

Repair

How to fix it

  1. 1

    Compare the child and parent rows named by the report.

  2. 2

    Use a station (1) as parent for a platform, entrance, or generic node, and a platform (0) as parent for a boarding area. A station must have no parent. Correct the reference or a misclassified type to match the real location.

  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.

Worked example

Example correction

Assume P1 and P2 are platforms of the existing station ST1. P1 must reference that station, not P2.

Before

stop_id,location_type,parent_station
ST1,1,
P1,0,P2
P2,0,ST1

After

stop_id,location_type,parent_station
ST1,1,
P1,0,ST1
P2,0,ST1

Illustrative excerpt, not a complete GTFS feed. Keep all other required records and fields.

Sources

References