ad-freiburg / pfaedle

Precise map-matching for public transit feeds. Generates high-quality GTFS shapes from OSM data.
GNU General Public License v3.0
206 stars 29 forks source link

No support for route_type 1700 #42

Closed jordi-cluet closed 1 year ago

jordi-cluet commented 1 year ago

I am trying to parse some GTFS files which contain routes with route_type 1700, which is part of the Extended GTFS Route Types, and I receive an error. I guess because it is missing in Route.h. GTFS file was obtained from this source.

Log:

INFO : Reading GTFS feed gtfs_fp2023_2023-03-01_04-15 ...
ERROR: Could not parse input GTFS feed, reason was:
gtfs_fp2023_2023-03-01_04-15/routes.txt:3704: in field 'route_type', route type '1700' not supported.
patrickbr commented 1 year ago

This is strongly related to #41. The reason why 1700 is not currently supported is that the extended MOT types are mapped to "classic" GTFS route types before pfaedle handles them. For 1700, there is no well-defined mapping to a classic route type, because this is a catch-all "Miscellaneous Service".

As soon as #41 ix fixed, pfaedle will pass these through untouched.

patrickbr commented 1 year ago

This is now fixed in master via 43904f2. Type 1700 is passed through untouched and can be selected via the -m command line parameter and in config file sections.