RTD Open Data
RTD公布以下数据:
- 时间表数据,包括完整的时间表和路由配置作为:
- 所有RTD服务的GTFS数据集
- RTD总线服务的实时数据, 包括到达/离开预测和车辆位置的信息,作为GTFS的实时馈送;
- Alerts
- Trip Updates
- Vehicle Positions
发布实时数据馈送的RTD巴士服务是一项倡议的第一阶段,未来将为RTD轻轨和通勤铁路服务提供类似的信息.
概念和id在数据提要中尽可能保持一致.
Use of RTD Data
控件中的语言控制对RTD数据源的访问 RTD License Agreement 除下列条件外:
- RTD不保证向用户提供任何形式的技术支持.
- 任何用户执行轮询命令的频率不得超过每30秒一次. 如果一个用户的轮询次数超过了这个次数,或者对RTD的系统造成了过重的负担,则可能会从数据提要中暂停或终止该用户.
Getting Help and Updates
RTD很乐意回答开发者的问题 [email protected].
我们鼓励开发者加入RTD开发者论坛,网址为 http://groups.google.com/forum/#!forum/rtd-developers to get the latest updates.
GTFS Schedule Dataset
RTD时间表数据可在通用运输馈送规范(GTFS)中获得,用于为RTD车手开发应用程序和其他移动工具. 如果您计划使用我们的GTFS数据,请遵循以下规则:
- Keep your data up-to-date. RTD时间表的重大变化通常在一年的1月、5月和8月发生三次. Visit Service Changes to get more information.
- Do not use the RTD logo, 未经RTD事先许可,擅自在RTD网站上发现RTD地图或任何其他RTD内容. 请求许可,请发送电子邮件 [email protected].
你必须阅读并同意 License Agreement 在下载数据之前.
Learn more about 通用过境馈电规范.
GTFS Realtime Feeds
RTD以GTFS实时格式为到达预测和车辆位置提供实时数据馈送.
*实时数据在2分钟内准确.
你必须阅读并同意 License Agreement 在下载数据之前.
Learn more about 通用过境馈电规范.
GTFS-RT提要在单独的协议缓冲区文件中提供:
- 警报——此提要包括有关路线中断和站点关闭的警报.
- 旅行更新-此feed包括旅行进度和到达/离开预测.
- 车辆位置-此馈送包括车辆位置.
与其他RTD数据源的关系
对于大多数应用程序,GTFS- rt提要必须链接到GTFS调度数据.
Format Documentation
gtfs -实时规范的详细信息见 http://developers.google.com/transit/gtfs-realtime/.
协议缓冲区格式的详细信息见 http://code.google.com/p/protobuf/.
gtfs -real - time feed有以下格式:
- header
-
- gtfs_realtime_version: “1.“0”(TripUpdate, VehiclePositions)或“2”.0” (Alerts)
- incrementality: FULL_DATASET
- timestamp
- entity
-
- id
- alert. 如果提供了警报实体,则包含. See alert below.
- trip_update. 如果提供了trip_update实体,则包含. See trip_update below.
- vehicle. 如提供车辆实体,则包括在内. See vehicle below.
- alert
-
- active_period
- start
- end (optional)
- informed_entity
-
agency_id
- route_id
-
route_type
-
stop_id
-
- stop_time_update
- stop_sequence
- stop_id
- arrival
- time. 参见其他信息
- departure
- time. 参见其他信息
- schedule_relationship. 如果stop是预定的停止,则为SCHEDULED;如果stop被跳过,则为skip.
- cause
- effect
- header_text
- translation
- text
- language
- translation
- description_text
- translation
- text
- language
- translation
- active_period
- trip_update
-
- trip
- trip_id
- route_id
- direction_id
- schedule_relationship. 如果行程按计划进行, 如果行程是添加的行程,则添加, 如果行程已取消,则为“已取消”.
- vehicle
- id
- label
- stop_time_update
- stop_sequence
- stop_id
- arrival
- time. 参见其他信息
- departure
- time. 参见其他信息
- schedule_relationship. 如果stop是预定的停止,则为SCHEDULED;如果stop被跳过,则为skip.
- timestamp. 这辆车的最新位置记录时间.
- trip
- vehicle
-
- trip
- trip_id
- route_id
- direction_id
- schedule_relationship. 如果行程按计划进行, 如果行程是添加的行程,则添加, 如果行程已取消,则为“已取消”.
- vehicle
- id
- label
- position
- latitude
- longitude
- bearing
- stop_id
- current_status. 是0 1还是2.
- 0 = INCOMING_AT
- 1 = STOPPED_AT -如果车辆停在stop_id
- 2 = IN_TRANSIT_TO -如果车辆正在前往stop_id的路上
- timestamp
- trip
Additional Information
- 到达和离开预测信息:
- 将在stop_time_update中为所有站点提供到达和离开预测信息.
- For many trips, 发车预报信息只在始发站提供,到达预报信息只在目的站提供.
- 在某些情况下,如果行程起源于非公共站点,则起点站点将具有到达预测信息.
- 在某些情况下,如果行程在非公共站点终止,则目的地站点将具有出发预测信息.
- Detours:
- 不提供服务的站点将把schedule_relationship设置为skip.
- stop_time_update, 包括到达/离开预测, 是否不提供任何替代站点.
Samples
旅行更新提要的示例
header { gtfs_realtime_version:“1.0" incrementality: FULL_DATASET timestamp: 1449176392 } entity { id:“1449176392 _109470943” trip_update { trip { trip_id: "109470943" schedule_relationship:计划 route_id: "0" direction_id: 0 } stop_time_update { stop_sequence: 6 arrival { time: 1449176381 } departure { time: 1449176381 } stop_id: "25676" schedule_relationship:计划 } stop_time_update { stop_sequence: 7 arrival { time: 1449176479 } departure { time: 1449176479 } stop_id: "22454" schedule_relationship:计划 } stop_time_update { stop_sequence: 8 arrival { time: 1449176585 } departure { time: 1449176585 } stop_id: "20378" schedule_relationship:计划 } vehicle { id: "6010" label: "6010" } timestamp: 1449042054 } }
车辆位置馈送的样本
header { gtfs_realtime_version:“1.0" incrementality: FULL_DATASET timestamp: 1449042263 } entity { id: "1449042263_1505" vehicle { trip { trip_id: "109486700" schedule_relationship:计划 route_id: "AB" direction_id: 1 } position { latitude: 39.8419 longitude: -104.676231 bearing: 161 } current_status: 2 timestamp: 1449042245 stop_id: "22903" vehicle { id: "1505" label: "1505" } } }
警报提要的示例
header { gtfs_realtime_version:“2.0" incrementality: FULL_DATASET timestamp: 1602010651 } entity { id: "7102" alert { active_period { start: 1602599400 end: 1602624600 } informed_entity { agency_id: "RTD" route_id: "3" route_type: 3 stop_id: "33212" } informed_entity { agency_id: "RTD" route_id: "1" route_type: 3 stop_id: "33212" } cause: CONSTRUCTION effect: NO_SERVICE header_text { translation { 文字:“由于施工,以下路段于10月13日(周二)上午8:30至下午3:30关闭:西弗吉尼亚大道 & 南索尔斯伯里街(33212号)(西行)." language: "en" } } description_text { translation { 受影响的路由:\r\n1\r\n3" language: "en" } } }