New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gtfs csv double quotes error #41
Comments
We're using this popular I don't think there is a formal CSV Specification, but this RFC indicates how to encode quotes for the widest support: Definition of the CSV Format
While there are various specifications and implementations for the
CSV format (for ex. [4], [5], [6] and [7]), there is no formal
specification in existence, which allows for a wide variety of
interpretations of CSV files. This section documents the format that
seems to be followed by most implementations:
...
6. Fields containing line breaks (CRLF), double quotes, and commas
should be enclosed in double-quotes. For example:
"aaa","b CRLF
bb","ccc" CRLF
zzz,yyy,xxx
7. If double-quotes are used to enclose fields, then a double-quote
appearing inside a field must be escaped by preceding it with
another double quote. For example:
"aaa","b""bb","ccc" I see a few options:
|
If the line is rewritten according to those rules it should parse correctly:
|
@missinglink thank you for your suggestions! I think my gtfs data is out of standard in fact :-/
can I pass this parameter through the pelias importer configuration? or do I need to make changes to the code? I could do a PR |
tested now work I'm update PR #43 |
pelias import transit
cause error:the data:
malformed data, row contains double quotes:
The text was updated successfully, but these errors were encountered: