Key:gtfs:location_type
gtfs:location_type |
Description |
---|
The exact value of the location_type column in a GTFS feed. |
Group: public transport |
Used on these elements |
See also |
Status: approved |
Tools for this tag |
|
The key gtfs:location_type=* is used in Public transportation tagging to add the location_type from the GTFS stops.txt
file to a platform/station/entrance/ ... .
It is used to find a corresponding location 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.
Defaults
The value of gtfs:location_type=* can often be inferred from the type of PTv2 object it is tagged on:
PTv2 object | GTFS object | location_type
|
---|---|---|
public_transport=platform (preferred) | stop | 0 |
public_transport=stop_position | ||
highway=bus_stop | ||
railway=stop | ||
railway=platform | ||
railway=tram_stop | ||
amenity=ferry_terminal | ||
public_transport=station | station | 1 |
public_transport=stop_area | ||
public_transport=stop_area_group | ||
railway=station | ||
railway=halt | ||
aerialway=station | ||
railway=subway_entrance | entrance/exit | 2 |
railway=train_station_entrance |
If an object matches none of these tags, or multiple tags that would give it different values, then gtfs:location_type=* must be explicitly tagged.
Example
Consider Nijmegen bus station, it is a station so we can find it in the file stops.txt in the GTFS feed.
Below is a section of that table:
stop_id | stop_code | stop_name | location_type | parent_station | platform_code | ... |
---|---|---|---|---|---|---|
2547419 | 60001013 | Nijmegen, Centraal Station | 0 (platform) | stoparea:122872 | M | |
stoparea:122872 | Nijmegen, Centraal Station | 1 (station) |
Adding only gtfs:stop_name:NL-OVApi=Nijmegen, Centraal Station is not sufficient, as that can refer to the bus station and all it's platforms.
To refer only to the bus station we can add gtfs:location_type:NL-OVApi:[[Key:|]]=1.
However, we can leave that out since the OSM feature is a public_transport=stop_area, which implies a value of 1.