OneBusAway / onebusaway-gtfs-modules

A Java-based library for reading, writing, and transforming public transit data in the GTFS format, including database support.

Home Page:https://github.com/OneBusAway/onebusaway-gtfs-modules/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The field "wkt" is being treated as required in "areas.txt" which does not meet GTFS.org spec

briandonahue opened this issue · comments

Summary:

The field wkt is being treated as a required field in areas.txt which is causing validation errors such as:
MobilityData/gtfs-realtime-validator#92

The wkt field seems to be an experimental spec and not part of the GTFS.org spec.

Steps to reproduce:

You can follow the steps in the original issue which uses the CsvEntityReader to read the areas.txt file and throws an exception:

org.onebusaway.csv_entities.exceptions.CsvEntityIOException: io error: entityType=org.onebusaway.gtfs.model.Area path=areas.txt lineNumber=2

When the file follows the GTFS.org spec with 2 fields, area_id, area_name

Expected behavior:

Not throw when the areas.txt meets the GTFS.org spec

Observed behavior:

throws an exception:

org.onebusaway.csv_entities.exceptions.CsvEntityIOException: io error: entityType=org.onebusaway.gtfs.model.Area path=areas.txt lineNumber=2

Platform:

java 17 2021-09-14 LTS
onebusaway-csv-entities-1.1.6
onebusaway-gtfs-1.3.87

@briandonahue Thanks for the PR. Its released now as 1.3.118

Fantastic, thanks!