1. Home
  2. Docs
  3. GTFS
  4. Adding GTFS/XML FIles

Adding GTFS/XML FIles

GTFS/XML Settings

  • All the GTFS and XML links for each system live in Settings > General
  • Schedules on the /route-overview pages are populated from the GTFS Static File URL metafield.
  • Trip notes, and route via columns of the schedules are populated from the Route/Note XML File URL
  • Real time info is populated from the GTFS Static File URL metafield

Adding a New XML File

  • To upload a new XML file to the website, you will need to either use the File Manager in cPanel, or have access to the server via SFTP.
  • In the root of the project, there will be a folder called XML-Schedules
  • Nested in this folder are folders for each system. Upload the newly provided XML file in to the respective system’s folder
  • Older XML files that have came from the Oracle export are nested within numbered folders. It is not required to continue this process. Files can be uploaded to the main system folder, or new sub-folders can be created by date for organizational purposes.
  • Once that new file has been uploaded, you can grab the file path to copy and paste into the respective metafield. Copy the entire URL structure ex: https://bctransit.com/XML-Schedules/WEB_VIC2024-Schedule
  • For best practice, please avoid using spaces in the file name
  • When new files have been added, IT will need to manually run the GTFS plugin cronjob, or this will automatically run overnight each night at midnight. See cronjob documentation here – https://www.bctransit.com/docs/gtfs/cronjob/

How can we help?