我正在尝试使用 GTFS 实时更新并具有 otp 版本 - otp-0.19.0-SNAPSHOT-shaded.jar 但是,它没有包含 router-config.json 的 Configuration.md 文件。请建议我如何获得更新版本的 otp jar 文件,或者可以将此配置文件包含到现有版本中。
问问题
356 次
1 回答
1
jar 不应包含router-config.json
,因为您可能在同一服务器中有多个(每个路由器一个)。
但是你不应该有创建自己的问题。这是一个例子:
{
"updaters": [
{
"type": "real-time-alerts",
"sourceType": "gtfs-http",
"frequencySec": 10,
"url": "http://my-rt-fee-publisher.com/feeds",
"defaultAgencyId": "Agency name"
}
]
}
将此文件放在 GTFS zip 和 OSM 数据的同一文件夹中,OTP 将负责使用它来更新图形。
于 2015-12-17T12:01:55.760 回答