GTFS 動態饋給整合
您可以使用 GTFS 在 Google 地圖中顯示開放式迴圈橫幅,以及在大眾運輸工具中顯示地圖
。
在 Google 地圖中顯示開放式迴圈橫幅
Google 錢包和 Google 地圖使用 GTFS 動態饋給,識別 Google 顯示的路線
Google 地圖。如要導入這項功能,運輸公司必須採取下列行動:
- 運輸公司必須發布含有下列欄位的 GTFS 動態饋給:
- 動態饋給必須準確呈現路線和停靠站,支援開放式迴圈。
- GTFS 動態饋給不包含不支援的車站、停靠站或路線。這是
,以確保在不支援路徑的使用者無法看到橫幅。
- 目前不支援局部推出作業。代理商必須針對
完整的 GTFS 動態饋給,或建立新的 GTFS 動態饋給。
在大眾運輸收據中顯示 Google 地圖
您可以使用 GTFS,在固定站和行動航廈的大眾運輸收據中顯示 Google 地圖。
固定式終端機
如要在 Google 錢包中顯示 Google 地圖,請提供車站的 Google 連結
與使用者相關的須貼近感應式刷卡機方法是提供
商家名稱標記和適當的 GTFS 動態饋給,如以下範例所示:
STOPS.txt: field(stop_id)
您也必須完成
打開環狀交通運輸表單。
行動終端機
如果是行動感應式刷卡機 (例如搭公車),你可以動態更新商家名稱
放置在終端機標記 (9F4E) 上,或提供感應式刷卡機上的感應操作與 GTFS 之間的關係
路徑動態饋給若是後者,則使用者只會顯示路線,不會顯示停靠站。請參閱以下資訊
範例:
ROUTES.txt field(route_id)
您也必須完成
打開環狀交通運輸表單。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-29 (世界標準時間)。
[null,null,["上次更新時間:2024-08-29 (世界標準時間)。"],[[["Transit agencies can leverage GTFS feeds to display an open loop banner in Google Maps, indicating routes that support open loop payments, by ensuring their feed accurately represents these routes and stops."],["GTFS feeds can be used to integrate Google Maps into transit receipts for both stationary and mobile terminals, providing users with visual location information."],["For stationary terminals, linking station stops with user taps requires providing the relationship between the Merchant Name tag and the corresponding GTFS feed, along with completing an onboarding form."],["Mobile terminals can either dynamically update the Merchant Name or link taps to a GTFS route feed, displaying the route to the user, and also require completion of the onboarding form."]]],["Transit agencies use GTFS feeds to display open loop banners and maps in Google Maps and transit receipts. To show banners, agencies must publish a complete GTFS feed (agency, stops, routes) accurately representing supported routes. To show maps in stationary terminal receipts, link the Merchant Name tag to the `STOPS.txt` stop ID field. For mobile terminals, link the Merchant Name or terminal taps to the `ROUTES.txt` route ID field. Submitting the open loop transit form is mandatory.\n"]]