ادغام خوراک GTFS
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
می توانید از GTFS برای نمایش بنر حلقه باز در Maps و برای نمایش نقشه ها در رسیدهای حمل و نقل استفاده کنید.
بنر حلقه باز را در Maps نمایش دهید
Google Wallet و Google Maps از فیدهای GTFS برای شناسایی مسیرهایی که در Google Maps نشان داده شده اند استفاده می کنند. برای پیاده سازی این ویژگی، آژانس های حمل و نقل باید موارد زیر را انجام دهند:
- آژانس حمل و نقل باید یک فید GTFS با حداقل فیلدهای زیر منتشر کند:
- آژانس
- متوقف می شود
- مسیرها
- خوراک باید نمایش دقیقی از مسیرها و توقف هایی باشد که از حلقه باز پشتیبانی می کنند.
- فید GTFS شامل ایستگاهها، ایستگاهها یا مسیرهایی نمیشود که پشتیبانی نمیشوند. این کار برای اطمینان از عدم نمایش بنر به کاربران در مسیر پشتیبانی نشده انجام می شود.
- عرضههای جزئی در حال حاضر پشتیبانی نمیشوند. آژانسها باید عرضه فید کامل GTFS را تکمیل کنند یا یک فید GTFS جدید ایجاد کنند.
نمایش نقشه ها در رسیدهای حمل و نقل
میتوانید از GTFS برای نمایش نقشهها در رسیدهای حمل و نقل برای پایانههای ثابت و سیار استفاده کنید.
پایانه های ثابت
برای نمایش Google Maps در Google Wallet، پیوندهای Google را برای پیوند ایستگاههای ایستگاه با ضربههای کاربران در ترمینال ارائه دهید. برای انجام این کار، همانطور که در مثال زیر نشان داده شده است، رابطه بین اطلاعات موجود در تگ نام تجاری و فید مناسب GTFS را ارائه دهید:
STOPS.txt: field(stop_id)
همچنین باید فرم ترانزیت حلقه باز را تکمیل کنید.
پایانه های سیار
برای پایانههای تلفن همراه، مانند آنهایی که در اتوبوس هستند، میتوانید بهصورت پویا نام تجاری را در برچسب پایانه (9F4E) بهروزرسانی کنید، یا رابطهای بین ضربههای ترمینال و خوراک مسیر GTFS ارائه دهید. در مورد دوم، به کاربر فقط مسیر نشان داده می شود، نه توقف. مثال زیر را ببینید:
ROUTES.txt field(route_id)
همچنین باید فرم ترانزیت حلقه باز را تکمیل کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eTransit 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.\u003c/p\u003e\n"],["\u003cp\u003eGTFS feeds can be used to integrate Google Maps into transit receipts for both stationary and mobile terminals, providing users with visual location information.\u003c/p\u003e\n"],["\u003cp\u003eFor 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.\u003c/p\u003e\n"],["\u003cp\u003eMobile 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.\u003c/p\u003e\n"]]],["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"],null,["# GTFS feed integration\n\nYou can use GTFS to display the open loop banner in Maps, and to show Maps in transit\nreceipts.\n\nDisplay the open loop banner in Maps\n------------------------------------\n\nGoogle Wallet and Google Maps use GTFS feeds to identify which routes are shown in Google\nMaps. To implement this feature, transit agencies must do the following:\n\n- The transit agency must publish a GTFS feed with the following fields at a minimum:\n - Agency\n - Stops\n - Routes\n- The feed must be an accurate representation of the routes and stops that support open loop.\n - The GTFS feed doesn't include stations, stops, or routes that aren't supported. This is done to ensure that the banner isn't shown to users on an unsupported route.\n - Partial rollouts aren't currently supported. Agencies must either complete the rollout for the complete GTFS feed or create a new GTFS feed.\n\nShow Maps in transit receipts\n-----------------------------\n\nYou can use GTFS to show Maps in transit receipts for stationary and mobile terminals.\n\n### Stationary terminals\n\nTo display Google Maps in Google Wallet, provide Google links to link the station stops\nwith users' taps on a terminal. To do this, provide the relationship between information in the\nMerchant Name tag and the appropriate GTFS feed, as shown in the following example: \n\n```scdoc\nSTOPS.txt: field(stop_id)\n```\n\nYou must also complete the\n[open loop transit form](https://support.google.com/pay/merchants/contact/open_loop_transit_onboarding).\n\n### Mobile terminals\n\nFor mobile terminals, such as those on a bus, you can either dynamically update the Merchant Name\non the terminal tag (9F4E), or provide a relationship between the taps on a terminal and a GTFS\nroute feed. In the latter case, the user is only shown the route, not the stop. See the following\nexample: \n\n```scdoc\nROUTES.txt field(route_id)\n```\n\nYou must also complete the\n[open loop transit form](https://support.google.com/pay/merchants/contact/open_loop_transit_onboarding)."]]