2

I have been doing extensive research on GTFS and GTFS-Realtime. All I want to be able to do, is find out how late a certain bus would be. I can't seem to find where I can connect to, to properly search for a specific bus number. So my questions are:

  1. Where/ how can I find the GTFS-Realtime file feed
  2. How can I properly open the file, and make it location specific.

I've been trying to use http://www.yrt.ca/en/aboutus/GTFS.asp to download the file, but can't figure out how to open the csv file properly.

4

1 回答 1

2

根据什么是 GTFS-realtime?,GTFS 实时数据不是 CSV 格式。相反,它基于Protocol Buffers

数据格式

GTFS 实时数据交换格式基于协议缓冲区。

协议缓冲区是一种与语言和平台无关的结构化数据序列化机制(想想 XML,但更小、更快、更简单)。数据结构在 gtfs-realtime.proto 文件中定义,然后用于生成源代码,以便使用各种语言(例如 Java、C++ 或Python。

于 2014-06-13T02:30:57.410 回答