GTFS for Realtime - route_type values

The GTFS specifications specify route_type values should be between 0 and 7.

In your GTFS for Realtime, and specifically your /buses endpoint, you have route_types of 700, 712 and 714.

Example data:

   route_id agency_id route_short_name              route_long_name           route_desc route_type
1: 2411_N10      2411              N10 Sutherland to City Town Hall Sydney Buses Network        700
2: 2412_N11      2412              N11   Cronulla to City Town Hall Sydney Buses Network        700
3: 2413_N20      2413              N20        Riverwood to Rockdale Sydney Buses Network        700
4: 2414_N30      2414              N30  Macarthur to City Town Hall Sydney Buses Network        700
5: 2415_N40      2415              N40 East Hills to City Town Hall Sydney Buses Network        700
6: 2416_N50      2416              N50  Liverpool to City Town Hall Sydney Buses Network        700

How does one match your route_type values with that specified by Google (in this case it should be 3 for buses) ?

Hi @dcooley, even though we follow Google GTFS specifications there are some variations that we have applied to accomodate our data feeds. Please have a look at the documentation page in the Open Data Hub for more information. Particularly the Buses technical documentation - https://opendata.transport.nsw.gov.au/sites/default/files/TfNSW_Realtime_Bus_Technical_Doc.pdf

It states:
route_type
Note: TfNSW Variation.
Indicates the Route Type of the Route. as per the extended GTFS route types following Hierarchical Vehicle Type (HVT) codes from the European TPEG standard Refer to Extended GTFS Route Types  |  Static Transit  |  Google Developers
For example: “700”.

Thanks,
Alex

Thanks Alex (@alejandro.felman), I was unaware of that particular variation.