HTenkanen / transx2gtfs

A Python library to convert transit data from TransXchange into GTFS -format.
MIT License
10 stars 10 forks source link

skipping missing attributes #29

Open nadiiia opened 4 years ago

nadiiia commented 4 years ago

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

Sample xml is attached (Scottish data) SVRABAO001.zip

Thanks, Nadiia

HTenkanen commented 4 years ago

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

mem48 commented 4 years ago

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.