GTFS
Distribusion allows partners to retrieve carrier schedules in GTFS format for all carriers in the platform via the Retailer API. Retrieval intervals can be freely defined to suit your schedule data refreshment needs. This data is made available within the /marketing_carriers/{marketing_carrier_id}/gtfs endpoint.
File Content
GTFS files are a powerful solution to import carrier schedules in bulk and provide users on your site with relevant travel data, such as:
- Route information
- Stop sequences
- Departure frequencies
- Dates & days of service
- Starting prices
File Structure
The files are available in zip format and the structure of the files follows official GFTS documentation as displayed on gtfs.org. Some key characteristics of Distribusion GTFS include:
- Intermediate stop routing (within stops file)
- Coverage of prices (cheapest_total_adult_price)
- Full coverage of single-segment trips available in the Distribusion database
Download our sample GTFS file for Megabus (MEGB).
Update Frequency
Distribusionās GTFS files are generated every two days to enable you to present accurate and fresh travel data to users.
API Examples
Sample Request to /marketing_carriers/{marketing_carrier_id}/gtfs
https://api.demo.distribusion.com/retailers/v4/marketing_carriers/MEGB/gtfsSample Response from /marketing_carriers/{marketing_carrier_id}/gtfs
Sample file (MEGB) (zip format)
For more sample responses, check the /marketing_carriers/{marketing_carrier_id}/gtfs endpoint page.
What made this section unhelpful for you?
On this page
- GTFS