Zh-hans:Key:gtfs:location_type

From OpenStreetMap Wiki
Jump to navigation Jump to search
gtfs:location_type
说明
GTFS feed 中 location_type 列的准确取值。 编辑此说明
组: public transport
用于这些元素
可用于节点可用于路径可用于区域可用于关系
另见

GTFS

状态:已批准Page for proposal
本页面由 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
nodewayarea public_transport=platform(推荐) stop 0
node public_transport=stop_position
node highway=bus_stop
node railway=stop
node railway=platform
node railway=tram_stop
node amenity=ferry_terminal
nodearea public_transport=station station 1
relation public_transport=stop_area
relation public_transport=stop_area_group
node railway=station
node railway=halt
nodearea aerialway=station
node railway=subway_entrance entrance/exit 2
node railway=train_station_entrance

如果某个对象与这些标签都不匹配,或者匹配了多个会给出不同取值的标签,那么就必须显式标注 gtfs:location_type=*。

示例

考虑 Nijmegen bus station,它是一个车站,因此我们可以在该 GTFS feed 的 stops.txt 文件中查到它。

下面是该表格的一部分:

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 要素是 relationpublic_transport=stop_area,这意味着其取值为 1。