Hi. I'm working with the TNDSV2.5 transit data and I'm running into a problem since it seems several files have no origin for the StandardService which results in an undefined error.
/home/gideon/.nvm/versions/node/v10.22.0/lib/node_modules/transxchange2gtfs/dist/src/transxchange/TransXChangeStream.js:101
ServiceOrigin: service.StandardService[0].Origin[0],
^
TypeError: Cannot read property '0' of undefined
at TransXChangeStream.getServices (/home/gideon/.nvm/versions/node/v10.22.0/lib/node_modules/transxchange2gtfs/dist/src/transxchange/TransXChangeStream.js:101:61)
at Array.reduce (<anonymous>)
at TransXChangeStream._transform (/home/gideon/.nvm/versions/node/v10.22.0/lib/node_modules/transxchange2gtfs/dist/src/transxchange/TransXChangeStream.js:27:49)
at TransXChangeStream.Transform._read (_stream_transform.js:190:10)
at TransXChangeStream.Readable.read (_stream_readable.js:471:10)
at flow (_stream_readable.js:974:34)
at TransXChangeJourneyStream.pipeOnDrainFunctionResult (_stream_readable.js:778:7)
at TransXChangeJourneyStream.emit (events.js:198:13)
at onwriteDrain (_stream_writable.js:495:12)
at afterWrite (_stream_writable.js:483:5)
I have attached 4 files which I have confirmed have the error and can reproduce locally (both on version 1.6.1 and 1.7.0).
I Don't know how important the origin is in these files and if it could be replaced with an empty/null value or derived from somewhere else? Maybe there could be an input parameter that allows skipping failed files but still create the output zip?
Hi. I'm working with the TNDSV2.5 transit data and I'm running into a problem since it seems several files have no origin for the
StandardService
which results in an undefined error.I have attached 4 files which I have confirmed have the error and can reproduce locally (both on version 1.6.1 and 1.7.0).
FailingTransxchangeFiles.zip
I Don't know how important the origin is in these files and if it could be replaced with an empty/null value or derived from somewhere else? Maybe there could be an input parameter that allows skipping failed files but still create the output zip?