Key:gtfs:route_id
![]() |
Description |
---|
The exact value of the route_id column in a GTFS feed. ![]() |
Group: public transport |
Used on these elements |
Useful combination |
One of: |
See also |
Status: approved![]() |
Tools for this tag |
|
The key gtfs:route_id=*
is used in public transportation tagging to add the route_id
from the GTFS routes.txt
file to a type=route
or type=route_master
relation
In PTv2 tagging gtfs:route_id=*
is a key for the route master relation but does not harm on route relations together with gtfs:shape_id=*
, gtfs:trip_id:sample=*
or gtfs:trip_id=*
.
The key is used to find the corresponding route in a GTFS feed. For this the feed needs to be specified using a feed code suffix (see List of GTFS feeds) For a longer explanation on how to reference a GTFS feed, look at GTFS.
Example
Consider Bus 10 (Nijmegen), it is a route master so the corresponding routes in routes.txt
Below is an excerpt of that table.
route_id | agency_id | route_short_name | route_long_name | route_type | ... |
---|---|---|---|---|---|
87966 | BRENG | 10 | Nijmegen CS - Heyendaal | 3 (bus) | |
87987 | BRENG | 10 | Nijmegen CS - Heyendaal - CS | 3 (bus) |
We can refer to the first one using gtfs:route_id:NL-OVApi=87966
Visualization
PTNA represents gtfs:route_id=*
on its pages about GTFS trips and in the network analysis (overview) under the tags summary.
gtfs:route_id=*
is evaluated by PTNA to link from the analysis to the GTFS data if additionally gtfs:feed=*
, operator:guid=*
or network:guid=*
(in this order) is present (example).