Câu hỏi thường gặp
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Sau đây là câu hỏi và câu trả lời cho các vấn đề thường gặp khi triển khai GTFS.
Hỏi: Có môi trường thử nghiệm cho nguồn cấp dữ liệu trước khi công khai không?
Đáp: Có, chúng tôi sẽ chuẩn bị môi trường thử nghiệm sau khi bạn tải nguồn cấp dữ liệu lên thành công.
Hỏi: Chúng tôi có cần tải nguồn cấp dữ liệu lên theo cách thủ công mỗi khi có nội dung cập nhật hay có thể yêu cầu Google tìm nạp nguồn cấp dữ liệu đó từ máy chủ của chúng tôi không?
Đáp: Nhìn chung, Google ưu tiên thiết lập tính năng tìm nạp thông thường (thông qua FTP GET). Theo mặc định, tần suất là hằng tuần. Ngoài ra, bạn có thể tải tệp lên theo cách thủ công từ bảng điều khiển.
Hỏi: Nếu có cả tuyến đường nhanh và tuyến đường địa phương, chúng tôi có thể gửi nguồn cấp dữ liệu riêng biệt không?
Đáp: Có, một đại lý có thể gửi nhiều nguồn cấp dữ liệu riêng biệt, nhưng chúng tôi thường ưu tiên một nguồn cấp dữ liệu duy nhất.
Hỏi: Trong trường hợp giá khác nhau tuỳ theo chỗ ngồi (ví dụ: hạng C so với hạng A), chúng ta cần làm gì?
Đáp: Vui lòng cung cấp mức giá chung nhất.
Hỏi: Nếu giá thay đổi tuỳ theo ngày (ví dụ: giá mùa cao điểm), chúng ta cần làm gì?
Đáp: Vui lòng tạo các tuyến riêng biệt.
Hỏi: Khi có nhiều miền đặt phòng cho agency.agency_fare_url
, chúng ta có thể thêm tất cả các miền đó bằng cách phân tách bằng dấu phẩy không?
Đáp: Vui lòng chỉ đưa vào một URL. Nếu chỉ hiển thị một giá trị thì vui lòng để trống.
Hỏi: Có thể đặt tên giống nhau cho routes.route_long_name
không?
Đáp: Có, bạn có thể đặt cùng một tên cho thuộc tính đó.
Hỏi: Nếu chúng ta đặt cả trạm mẹ và trạm con cho các trạm sau, thì trạm nào sẽ được sử dụng?
A:
stop_code
: dừng
stop_name
: ga (trong tương lai, chúng ta có thể sử dụng trạm dừng)
stop_desc
: không có
stop_lat
: cả hai
stop_lon
: cả hai
zone_id
: dừng
stop_url
: trạm
wheelchair_boarding
: cả hai
Hỏi: Chúng tôi có thể cập nhật nguồn cấp dữ liệu chính xác vào ngày thay đổi lịch không?
Đáp: Bạn có thể chỉ định ngày mà nguồn cấp dữ liệu có hiệu lực trong GTFS. Bạn phải tải nguồn cấp dữ liệu lên
hai tuần trước ngày nguồn cấp dữ liệu đó bắt đầu hoạt động. Xin lưu ý rằng thông tin trên lịch phải trùng lặp.
Có một công cụ để "hợp nhất" hai nguồn cấp dữ liệu.
Hỏi: Chúng tôi có thể sử dụng mã nhận dạng duy nhất hiện có mà chúng tôi đang sử dụng nội bộ không?
Đáp: Có, mã nhận dạng trong GTFS có thể là bất kỳ giá trị nào.
Hỏi: Tôi liên tục không tải được nguồn cấp dữ liệu lên. Vấn đề có thể là gì?
Đáp: Vui lòng đảm bảo rằng các tệp đó nằm trong thư mục cấp cao nhất trong tệp ZIP.
Hỏi: Kết quả về phương tiện công cộng không được tạo từ các cụm từ tìm kiếm mẫu trong tính năng Xem trước. Vấn đề có thể là gì?
Đáp: Vui lòng kiểm tra thời gian của các mẫu đó và đảm bảo rằng các chuyến bay của bạn đang chạy vào những thời điểm đã chọn. Nếu không, có thể không có kết quả nào được tạo.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eGoogle prefers a regularly fetched GTFS feed via FTP, with weekly updates as the default.\u003c/p\u003e\n"],["\u003cp\u003eSeparate routes should be created for services with date-dependent pricing, such as peak season fares.\u003c/p\u003e\n"],["\u003cp\u003eFor stops with both parent and child stations defined, station information will be prioritized for \u003ccode\u003estop_name\u003c/code\u003e and \u003ccode\u003estop_url\u003c/code\u003e while stop information will be used for other attributes.\u003c/p\u003e\n"],["\u003cp\u003eGTFS feeds must be uploaded two weeks prior to their effective date and should specify the valid date range within the feed itself.\u003c/p\u003e\n"],["\u003cp\u003eTroubleshooting feed upload failures often involves ensuring all files are in the ZIP file's top-level directory and verifying transit schedules align with preview query times.\u003c/p\u003e\n"]]],["GTFS implementation involves a test environment after feed upload. Google prefers regular feed fetching (weekly default) via FTP, though manual uploads are possible. Multiple feeds are accepted, but a single feed is preferred. Include the most generic price; for date-dependent pricing, create separate routes. Only one URL is allowed for `agency_fare_url`. IDs can be internal values. Files should be at the top level of the ZIP. Feeds are needed two weeks prior to live date.\n"],null,["# Frequently Asked Questions\n\nThe following are questions and answers for common issues when implementing GTFS.\n\n##### Q: Is there a test environment for the feed before making it public?\n\nA: Yes, we will prepare the test environment once your feed is successfully uploaded.\n\n##### Q: Do we need to manually upload the feed every time there is an update or can we ask Google to\nfetch it from our server?\n\nA: In general, Google prefers to set up a regular fetch (via FTP GET). The frequency\nis weekly by default. In addition, you can manually upload a file from the console.\n\n##### Q: If we have both the express line and local line, can we submit separate feeds?\n\nA: Yes, it is possible for an agency to submit multiple separate feeds but we usually prefer having\na single feed.\n\n##### Q: In case the price is different depending on the seat --e.g., class C vs. class A, what do we need to do?\n\nA: Please include the most generic price.\n\n##### Q: If the price is different depending on the date --e.g., peak season price, what do we need to do?\n\nA: Please create separate routes.\n\n##### Q: When there are multiple booking domains for `agency.agency_fare_url`, can we add them all separating\nthem with comma?\n\nA: Please only include one URL. If there is a problem in just showing one, please leave it blank.\n\n##### Q: Is it ok to have the same name for `routes.route_long_name`?\n\nA: Yes, you can set the same name for that attribute.\n\n##### Q: If we set both the parent station and child station for the following, which will be used?\n\nA:\n\n- `stop_code`: stop\n- `stop_name`: station (in the future, we might use stop)\n- `stop_desc`: none\n- `stop_lat`: both\n- `stop_lon`: both\n- `zone_id`: stop\n- `stop_url`: station\n- `wheelchair_boarding`: both\n\n\u003cbr /\u003e\n\n##### Q: Can we update the feed exactly on the date when the schedule is changed?\n\nA: You can specify to which date the feed is valid in GTFS. The feeds must be uploaded\ntwo weeks prior to the date when it should go live. Note that the calendar information must overlap.\nThere is a tool for \"merging\" two feeds.\n\n##### Q: Can we use our existing unique ids we have been using internally?\n\nA: Yes, IDs in GTFS can be any value.\n\n##### Q: My feed upload keeps failing. What could be a problem?\n\nA: Please ensure that the files are in the top level directory in your ZIP file.\n\n##### Q: Transit results are not generated from the sample queries in Preview. What could be the issue?\n\nA: Please check the time of those samples and make sure that your transits are running at those selected\ntimes. If not, it is possible that there is no result generated."]]