Yuriy
Yuriy
It looks like comments are not supported in csv files. Excel does not
understand them. I found proposals to include a comment symbol (#) as
I searched on the subject. At the same time, the .txt files in GTFS
are not specified as CSV.
I think the core of this decision is whether, on the whole, it would
make it easier or harder to work with GTFS files.
As you mentioned, adding comments allows you to document files (though
it's likely that most GTFS files are generated by scripts and
exports), and to temporarily comment out some of the data.
On the other hand, it would be unfortunate if comments interfered with
the operation of the tools that are commonly used to work with GTFS
data:
1) CSV libraries in languages such as Python, Java, and C++
2) off-the-shelf software like Excel, MS Access, and other databases
It would be interesting to hear more about what tools the members of
this use to work with GTFS data. I'd love to hear some details on
this (and thoughts on whether others are interested in using comments
in their data).
In the GoogleTransitDataFeed open-source project, we've used the
Python "csv" package (though we do some pre-processing to handle
character encoding issues). Joachim Pfeiffer's Java code appears to
just write out CSV using raw string concatenation, in the
TransxchangeHandlerEngine class. Both of those pieces of code could
probably be made to work with comments without much effort.
Joe