Skip to content

Commit

Permalink
Improve remark for modification type 36 (upcoming DVS change)
Browse files Browse the repository at this point in the history
  • Loading branch information
geertw committed Sep 5, 2023
1 parent 764cd10 commit 5952553
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions models/modification.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ const ModificationRouteShortened = 34
// ModificationRouteExtended train continues beyond normal destination
const ModificationRouteExtended = 35

// ModificationOriginRouteShortened departed from a later stop than usual
// ModificationOriginRouteShortened departs from a later stop than usual
const ModificationOriginRouteShortened = 36

// ModificationOriginRouteExtended train departed from an earlier stop than the normal origin station
// ModificationOriginRouteExtended train departs from an earlier stop than the normal origin station
const ModificationOriginRouteExtended = 37

// ModificationExtraArrival extra arrival, i.e. train doesn't normally arrive at this station
Expand Down Expand Up @@ -156,7 +156,10 @@ func (modification Modification) Remark(language string) (string, bool) {
case ModificationRouteExtended:
return modification.remarkWithStation("Rijdt verder naar %s", "Continues to %s", language), true

case ModificationOriginRouteExtended, ModificationChangedOrigin, ModificationOriginRouteShortened:
case ModificationOriginRouteShortened:
return modification.remarkWithStation("Trein begint op %s", "Train starts at %s", language), true

case ModificationOriginRouteExtended, ModificationChangedOrigin:
// TODO: pass origin station
return modification.remarkWithCause("Afwijkende herkomst", "Different origin", language), true

Expand Down

0 comments on commit 5952553

Please sign in to comment.