以下範例是文字形式的動態饋給。在開發過程中,產生 ASCII 通訊協定緩衝區輸出結果會更加方便,也更容易偵錯。您可以比較文字輸出結果和這些範例,確認資料是否有效。
動態饋給範例
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThese examples demonstrate the textual format of GTFS-realtime feeds for service alerts, trip updates, and vehicle positions.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use these examples to compare with their ASCII protocol buffer output during development for debugging purposes.\u003c/p\u003e\n"],["\u003cp\u003eLinks are provided to access the full examples for each feed type: service alerts, trip updates, and vehicle positions.\u003c/p\u003e\n"]]],["The provided examples illustrate textual representations of data feeds, specifically for debugging purposes during development. These examples, in ASCII protocol buffer format, allow developers to validate their data output. The feeds covered are Service Alerts, a full dataset of Trip Updates, and Vehicle Positions. Developers can use these examples to compare and check the accuracy of their own textual data outputs.\n"],null,["# Feed examples\n\nThe following examples show a textual representation of feeds. During development, it's more\nconvenient to produce ASCII protocol buffer output for easier debugging. You can compare your text\noutput with these examples to check the validity of your data.\n\n- [Service Alert](/transit/gtfs-realtime/examples/alerts)\n- [Trip Update (full dataset)](/transit/gtfs-realtime/examples/trip-updates-full)\n- [Vehicle Position](/transit/gtfs-realtime/examples/vehicle-positions)"]]