Zh-hans:Key:gtfs:location_type
Jump to navigation
Jump to search
| 说明 |
|---|
| GTFS feed 中 location_type 列的准确取值。 |
| 组: public transport |
| 用于这些元素 |
| 另见 |
| 状态:已批准 |
| 此标签的工具 |
本页面由 AI 从英文页面翻译而来,内容需要人工复核。
键 gtfs:location_type=* 用于在公共交通标注中,把 GTFS stops.txt 文件中的 location_type 添加到站台/车站/入口/…… 上。
它用于在 GTFS feed 中查找对应的地点。为此需要使用 feed 代码后缀来指定 feed(见 List of GTFS feeds)。
关于如何引用 GTFS feed 的更详细说明,请参阅 GTFS。
默认值
gtfs:location_type=* 的取值通常可以从它所标注的 PTv2 对象类型推断出来:
| PTv2 对象 | GTFS 对象 | location_type
|
|---|---|---|
public_transport=platform(推荐)
|
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
|
如果某个对象与这些标签都不匹配,或者匹配了多个会给出不同取值的标签,那么就必须显式标注 gtfs:location_type=*。
示例
考虑 Nijmegen bus station,它是一个车站,因此我们可以在该 GTFS feed 的 stops.txt 文件中查到它。
下面是该表格的一部分:
| 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) |
仅添加 gtfs:stop_name:NL-OVApi=Nijmegen, Centraal Station 是不够的,因为它可能指向该公交总站及其所有站台。
若只想指向该公交总站,我们可以添加 gtfs:location_type:NL-OVApi:[[Zh-hans:Key:|]]=1。
不过我们也可以省略,因为该 OSM 要素是 public_transport=stop_area,这意味着其取值为 1。