مثالهای زیر نمایش متنی فیدها را نشان میدهند. در طول توسعه، تولید خروجی بافر پروتکل ASCII برای اشکالزدایی آسانتر راحتتر است. می توانید خروجی متن خود را با این مثال ها مقایسه کنید تا اعتبار داده های خود را بررسی کنید.
نمونه های خوراک
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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)"]]