Closed larsschwarz closed 3 years ago
Thanks for reporting this issue.
Can you share with me the GTFS file you are using so I can see why the SQLITE_CONSTRAINT: CHECK constraint failed: routes
happened?
I just updated the documentation - if you use skipImport
with an in-memory database, it will fail as there will be no data available.
Due to license issues with the actual feed (it's only partially CC) I've sent the feed URL to your email address.
Thanks for sharing the feed.
I found that it had some validation issues - but GTFS-to-HTML and GTFS-to-geojson were not giving very helpful and specific error messages. A few routes in routes.txt
have invalid values of route_type
set to 1200 (valid options are 0-7).
I added better validation with specific line numbers so that it is easier to see what's wrong. Check out the latest version of GTFS-to-HTML and GTFS-to-geojson and it will print some very helpful error messages.
Once you get this working, let me know if you end up using GTFS-to-HTML or GTFS-to-geojson for anything interesting and let me know if you find any other issues.
Thanks, but are there any plans to support extended route types like 1200 as proposed here https://developers.google.com/transit/gtfs/reference/extended-route-types ?
Great point - I wasn't aware of these but I updated the schema definitions of route_type in routes.txt to support this and published updated versions of all libraries.
I did not specify a sqlitePath in the config file, however when running gtfs-to-geojson it returns:
Also when using the same config file (no sqlitePath set) and providing --Skipimport it immediately returns
Same error (SQLITE_CONSTRAINT) also happens with gtfs-to-html btw.
Ubuntu 20.04.1 LTS Node v12.18.4 npm 6.14.6