Skip to content

Commit

Permalink
fix: rename stopping location to halt to match newest spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Grodien committed Jan 21, 2025
1 parent 00d41ef commit 0405ec3
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion das_client/lib/sfera/src/mapper/sfera_model_mapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class SferaModelMapper {
order: calculateOrder(segmentIndex, timingPoint.location),
mandatoryStop: tpConstraint.stoppingPointInformation?.stopType?.mandatoryStop ?? true,
isStop: tpConstraint.stopSkipPass == StopSkipPass.stoppingPoint,
isStation: tafTapLocation.locationType != TafTapLocationType.stoppingLocation,
isStation: tafTapLocation.locationType != TafTapLocationType.halt,
bracketMainStation: _parseBracketMainStation(tafTapLocations, tafTapLocation),
kilometre: kilometreMap[timingPoint.location] ?? [],
speedData: _graduatedSpeedDataFromVelocities(tafTapLocation.newLineSpeed?.xmlNewLineSpeed.element.velocities),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:das_client/sfera/src/model/enums/xml_enum.dart';

enum TafTapLocationType implements XmlEnum {
station(xmlValue: 'station'),
stoppingLocation(xmlValue: 'stopping location');
halt(xmlValue: 'halt');

const TafTapLocationType({
required this.xmlValue,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</SP_Points>
<SP_Areas>
<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="MLH"
TAF_TAP_location_type="stopping location">
TAF_TAP_location_type="halt">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3018</LocationPrimaryCode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
</TAF_TAP_Location>

<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="MLH"
TAF_TAP_location_type="stopping location">
TAF_TAP_location_type="halt">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3018</LocationPrimaryCode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
</TAF_TAP_Location>

<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="MLH"
TAF_TAP_location_type="stopping location">
TAF_TAP_location_type="halt">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3018</LocationPrimaryCode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

<SP_Areas>
<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="C"
TAF_TAP_location_type="stopping location">
TAF_TAP_location_type="halt">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>9993</LocationPrimaryCode>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</SP_Points>
<SP_Areas>
<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="MLH"
TAF_TAP_location_type="stopping location">
TAF_TAP_location_type="halt">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3018</LocationPrimaryCode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
</TAF_TAP_Location>

<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="MLH"
TAF_TAP_location_type="stopping location">
TAF_TAP_location_type="halt">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3018</LocationPrimaryCode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
</TAF_TAP_Location>

<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="MLH"
TAF_TAP_location_type="stopping location">
TAF_TAP_location_type="halt">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3018</LocationPrimaryCode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
</TAF_TAP_Location>

<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="GLA"
TAF_TAP_location_type="stopping location">
TAF_TAP_location_type="halt">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3004</LocationPrimaryCode>
Expand All @@ -165,7 +165,7 @@
</TAF_TAP_Location>

<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="MEL"
TAF_TAP_location_type="stopping location">
TAF_TAP_location_type="halt">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>3007</LocationPrimaryCode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

<SP_Areas>
<TAF_TAP_Location startEndQualifier="StartsEnds" TAF_TAP_location_abbreviation="C"
TAF_TAP_location_type="stopping location">
TAF_TAP_location_type="halt">
<TAF_TAP_LocationIdent>
<CountryCodeISO>CH</CountryCodeISO>
<LocationPrimaryCode>9993</LocationPrimaryCode>
Expand Down

0 comments on commit 0405ec3

Please sign in to comment.