Domande frequenti
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Di seguito sono riportate domande e risposte relative ai problemi comuni durante l'implementazione di GTFS.
D: Esiste un ambiente di test per il feed prima di renderlo pubblico?
R: Sì, prepareremo l'ambiente di test dopo il caricamento del feed.
D: Dobbiamo caricare manualmente il feed ogni volta che c'è un aggiornamento o possiamo chiedere a Google di recuperarlo dal nostro server?
R: In generale, Google preferisce configurare un recupero regolare (tramite FTP GET). La frequenza è settimanale per impostazione predefinita. Inoltre, puoi caricare manualmente un file dalla console.
D: Se abbiamo sia la linea express che la linea locale, possiamo inviare feed separati?
R: Sì, è possibile che un'agenzia invii più feed separati, ma in genere preferiamo avere un unico feed.
D: Se il prezzo è diverso a seconda del posto, ad esempio classe C rispetto alla classe A, cosa dobbiamo fare?
A: includi il prezzo più generico.
D: Se il prezzo è diverso a seconda della data, ad esempio il prezzo per la stagione alta, cosa dobbiamo fare?
R: Crea route separate.
D: Quando sono presenti più domini di prenotazione per agency.agency_fare_url
, possiamo aggiungerli tutti separandoli con una virgola?
R: Includi un solo URL. Se si verifica un problema con la visualizzazione di un solo video, lascia vuoto il campo.
D: È possibile avere lo stesso nome per routes.route_long_name
?
R: Sì, puoi impostare lo stesso nome per l'attributo.
D: Se impostiamo sia la stazione principale che la stazione secondaria per quanto segue, quale verrà utilizzata?
A:
stop_code
: fermata
stop_name
: stazione (in futuro potremmo utilizzare fermata)
stop_desc
: nessuna
stop_lat
: entrambi
stop_lon
: entrambi
zone_id
: fermata
stop_url
: stazione
wheelchair_boarding
: entrambi
D: Possiamo aggiornare il feed esattamente nella data in cui viene modificata la programmazione?
R: puoi specificare fino a quale data il feed è valido in GTFS. I feed devono essere caricati almeno due settimane prima della data in cui devono essere pubblicati. Tieni presente che le informazioni del calendario devono sovrapporsi.
Esiste uno strumento per "unire" due feed.
D: Possiamo utilizzare gli ID univoci esistenti che utilizziamo internamente?
R: Sì, gli ID in GTFS possono avere qualsiasi valore.
D: Il caricamento del mio feed continua a non andare a buon fine. Quale potrebbe essere il problema?
R: assicurati che i file si trovino nella directory di primo livello del file ZIP.
D: I risultati relativi ai trasporti pubblici non vengono generati dalle query di esempio in Anteprima. Quale potrebbe essere il problema?
R: controlla l'ora di questi campioni e assicurati che i trasporti vengano eseguiti negli orari selezionati. In caso contrario, è possibile che non venga generato alcun risultato.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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."]]