Skip to content

Repair Interpolation#21

Merged
miles-grant-ibigroup merged 13 commits into
devfrom
interpolation-repair
May 27, 2026
Merged

Repair Interpolation#21
miles-grant-ibigroup merged 13 commits into
devfrom
interpolation-repair

Conversation

@miles-grant-ibigroup
Copy link
Copy Markdown

The existing interpolation code did not work at all. This PR repairs this situation.

We replicate the functionality by creating two modes: one for re-calculating all stop times using timepoint times only (assuming that the travel time refers to time since the last timepoint), and a second for filling in only stoptimes with missing stoptimes (not using interpolation)

Copy link
Copy Markdown

@br648 br648 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some changes required. How are you testing this?

Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Copy link
Copy Markdown

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you clarify the exclusion of dwell time for non-timepoint stops? I also agree with @br648 that some tests should be added.

Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
@miles-grant-ibigroup
Copy link
Copy Markdown
Author

I've added a simple test. It's not as thorough as I would've liked, but I ran into problems with how the test harness handled the shape data

Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Comment thread src/test/java/com/conveyal/gtfs/loader/JDBCTableWriterTest.java
Copy link
Copy Markdown

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gonna approve this given the clarifications made around the assumption regarding ignoring travel times/dwell times for stops that are not timepoints.

Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java
Comment thread src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java Outdated
Copy link
Copy Markdown

@br648 br648 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. All good now.

@br648 br648 assigned miles-grant-ibigroup and unassigned br648 May 27, 2026
@miles-grant-ibigroup miles-grant-ibigroup merged commit 1641a36 into dev May 27, 2026
2 checks passed
@miles-grant-ibigroup miles-grant-ibigroup deleted the interpolation-repair branch May 27, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants