---
id: "gtfs_rt_schedule_relationship"
kind: "datatype"
status: "draft"
is_pii: false
name: "GTFS Realtime schedule relationship"
regexp: "^(?:SCHEDULED|ADDED|UNSCHEDULED|CANCELED|CANCELLED|REPLACEMENT|DUPLICATED|NEW|DELETED|SKIPPED|NO_DATA)$"
categories: ["transport"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/gtfs_rt_schedule_relationship"
---

# GTFS Realtime schedule relationship (`gtfs_rt_schedule_relationship`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Value of a schedule_relationship field of a GTFS Realtime feed, how a realtime trip or stop time relates to the static schedule. For a trip (TripDescriptor.ScheduleRelationship): SCHEDULED, ADDED (deprecated), UNSCHEDULED, CANCELED, REPLACEMENT, DUPLICATED, NEW or DELETED; for a stop time update: SCHEDULED, SKIPPED, NO_DATA or UNSCHEDULED.

- Parent datatype: [`category`](https://registry.apicrafter.io/datatype/category.md)
- Personal data (PII): no
- Categories: Transportation (transport)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:SCHEDULED|ADDED|UNSCHEDULED|CANCELED|CANCELLED|REPLACEMENT|DUPLICATED|NEW|DELETED|SKIPPED|NO_DATA)$
```

## Examples

- `SCHEDULED` — Canberra Metro light rail trip updates
- `ADDED`
- `SKIPPED` — a stop time update
- `DELAYED` (invalid example)

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `gtfsrtschedulerelationshipbyfield` (field, `common/transport.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Отношение к расписанию (GTFS Realtime)

## Sources

- doc: <https://gtfs.org/documentation/realtime/reference/>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/gtfs_rt_schedule_relationship.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/transport/gtfs_rt_schedule_relationship.yaml>
