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

AgencyId in SubsectionTripTransformStrategy is not preserved?

marecabo opened this issue · comments

Summary:

I suspect that this line

should actually be like this line

because both methods are trimming trips somehow (still need to grasp their differences, though).

Steps to reproduce:

I have not run anything yet, I'm reading and trying to understand the code's functionality.

Expected behavior:

I expect the original AgencyId to persist when transforming a trip, or, if this is not reasonable, to use a configurable AgencyId.

Observed behavior:

The line in SubsectionTripTransformStrategy introduces a new constant AgencyId "1" and does not reuse the AgencyId of the original trip.

Platform:

  • onebusaway-gtfs-modules: 1.3.101-SNAPSHOT

Thank you for your work at these helpful modules.