Different route_type warning

46 views
Skip to first unread message

Vasile Catana

unread,
Dec 7, 2021, 7:50:34 AM12/7/21
to GTFS Changes
Hello everyone!

I created a routes.txt and it contains information about the routes from 2 agencies. Running the validator it says that "Invalid value 11 in field route_type". In the file I have two types of routes: 3 and 11. 
Here is a small part of the file

"
5,RTEC,5,Parcul de troleibuze nr.2 - str. Bariera Sculeni,11
4,RTEC,4,bd. Dacia - str. Constituției,11
3,RTEC,3,str. Alba-Iulia - str. Miorița,11
2,RTEC,2,bd. Traian - str. A. Pușkin,11
1,RTEC,1,or. Durlești - str. Sarmizegetusa,11
16,RTEC,16,Str. uzinelor - str. 31 AUGUST 1989,11
18864,PUA,5,Tur 18864,3
18871,PUA,5,Retur 18871,3
18979,PUA,19,Tur 18979,3
"

Does anyone have any idea?

Many thanks! 

Stefan de Konink

unread,
Dec 7, 2021, 7:54:25 AM12/7/21
to gtfs-c...@googlegroups.com
Since your header line is missing;

Do I understand you have 6 trolley busses, and 3 bus lines in the example
below?

It might well be that your validator does not yet support Trolleybus and
Monorail.
--
Stefan

Bodo Minea

unread,
Dec 7, 2021, 9:58:47 AM12/7/21
to gtfs-c...@googlegroups.com
What validator gave you that warning?
OpenTripPlanner and its derivatives does not support route type 11 for trolleybus, at least in my experience. Route types 11 and 12 were added by Google Maps Transit, Moovit, etc. at the request of data producers but are not adopted as mainstream in GTFS for some reason.

If it's only a warning, you may disregard it. If it prevents your project deployment, just replace them with the bus route type for the time being or make your own fork of OTP which supports these types. Further reading on the issue - https://github.com/opentripplanner/OpenTripPlanner/issues/3657

--
You received this message because you are subscribed to the Google Groups "GTFS Changes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gtfs-changes...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gtfs-changes/20e66195-8d12-43ba-a713-63a6330a0ba5n%40googlegroups.com.


--

Vasile Catana

unread,
Dec 7, 2021, 9:58:49 AM12/7/21
to GTFS Changes
Yes, you are right. I have tried to validate it using google validator. 

Andrew Byrd

unread,
Dec 7, 2021, 10:36:00 AM12/7/21
to gtfs-c...@googlegroups.com
Hello,

The development branch of OTP and any future releases should now support these modes, see:

-Andrew

Vasile Catana

unread,
Dec 7, 2021, 11:34:07 AM12/7/21
to GTFS Changes
The problem was that the validator did not support 11 type. Thanks a lot Bodo, Andrew and Stefan! 

Isabelle de Robert

unread,
Dec 10, 2021, 8:35:25 AM12/10/21
to GTFS Changes
Hello, 

Google's python validator hasn't been maintained for a while. 
If it can help, the Canonical GTFS Schedule Validator maintained by MobilityData is kept up to date with the official GTFS specification and the route types 8 to 12 (that have been added in 2020 in the spec) are covered by it.
If this is of any interest, there are plans on having a version of this validator also covering Hierarchical Vehicle Types and giving speed warnings that depend on them, as discussed here.

Cheers, 

Isabelle
Reply all
Reply to author
Forward
0 new messages