HTenkanen/transx2gtfs

skipping missing attributes

Opened this issue · 2 comments

When xml doesn't have certain attributes it would be good if they populated with 'None' or skipped.
E.g.

  • 'JourneyPattern' has no attribute 'RouteRef'
  • 'Operator' has no attribute 'OperatorNameOnLicence'

Sample xml is attached (Scottish data) SVRABAO001.zip

Thanks,
Nadiia

Hi @nadiiia, and thanks for raising this issue! I will take a look at this.

mem48 commented

Hi I'm wokring on a similar converter but in R https://github.com/ITSLeeds/UK2GTFS I ran your example file.
gtfs.zip

It seems to work, I got one validation error that my code left an unwanted column file_id in calendar.txt but that should be easy to remove.