Key:gtfs:stop_id

From OpenStreetMap Wiki
Jump to navigation Jump to search
Public-images-osm logo.svg gtfs:stop_id
Description
The exact value of the stop_id column in a GTFS feed. Show/edit corresponding data item.
Group: public transport
Used on these elements
may be used on nodesmay be used on waysmay be used on areas (and multipolygon relations)may be used on relations
Useful combination

One of:

See also
Status: approvedPage for proposal

The key gtfs:stop_id=* is used in Public transport tagging to reference the stop_id of a location in a GTFS feed.

In order to find the corresponding locations, we need to specify the feed it refers to using a feed code suffix (see List of GTFS feeds).

For a longer explanation on how to reference a GTFS feed, look at GTFS.

Combining with ref=*

There is no mechanism to infer a value of this key based on tags like railway:ref=*, ref:IFOPT=*.

Such a mechanism may cause links to GTFS objects to break when those other tags are changed. - even for something small changes like formatting.

Therefore tagging both gtfs:stop_code=* and the other tag is encouraged, even if they have the same value.

Example

Consider Station Nijmegen, it is a station which we can find in the file stops.txt in the GTFS feed.

Below is the relevant section of that table.

stops.txt
stop_id stop_code stop_name location_type parent_station platform_code ...
stoparea:17857 nm Nijmegen 1 (station)

To refer to this object we can add gtfs:stop_id:NL-OVApi=stoparea:17857.

Visualization

  • PTNA represents the stop_id on its pages about GTFS trips.