Skip to content

Commit

Permalink
Merge pull request #9 from DylanVanAssche/feature/ISSUE-7
Browse files Browse the repository at this point in the history
Added check for canceled connections
  • Loading branch information
julianrojas87 committed Feb 18, 2019
2 parents 3b9f619 + be7dedc commit 266748a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Gtfsrt2LC.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class Gtfsrt2LC {
}

getConnectionType(entity) {
if (entity.is_deleted) {
if (entity.is_deleted || entity.trip_update.trip.schedule_relationship == 3) {
return 'CanceledConnection';
}
else {
Expand Down

0 comments on commit 266748a

Please sign in to comment.