-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update unit tests to use StationDetails and add bad_disturbance…
…s.json example
- Loading branch information
Showing
5 changed files
with
475 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
{ | ||
"version": "1.1", | ||
"timestamp": "1581856899", | ||
"composition": { | ||
"segments": { | ||
"number": "1", | ||
"segment": [ | ||
{ | ||
"id": "0", | ||
"origin": { | ||
"locationX": "4.071825", | ||
"locationY": "50.891925", | ||
"id": "BE.NMBS.008895802", | ||
"name": "Denderleeuw", | ||
"@id": "http://irail.be/stations/NMBS/008895802", | ||
"standardname": "Denderleeuw" | ||
}, | ||
"destination": { | ||
"locationX": "4.071825", | ||
"locationY": "50.891925", | ||
"id": "BE.NMBS.008895802", | ||
"name": "Denderleeuw", | ||
"@id": "http://irail.be/stations/NMBS/008895802", | ||
"standardname": "Denderleeuw" | ||
}, | ||
"composition": { | ||
"source": "Itris", | ||
"units": { | ||
"number": "3", | ||
"unit": [ | ||
{ | ||
"id": "0", | ||
"materialType": { | ||
"parent_type": "AM08M", | ||
"sub_type": "c", | ||
"orientation": "LEFT" | ||
}, | ||
"hasToilets": "1", | ||
"hasTables": "1", | ||
"hasSecondClassOutlets": "1", | ||
"hasFirstClassOutlets": "1", | ||
"hasHeating": "1", | ||
"hasAirco": "1", | ||
"materialNumber": "8112", | ||
"tractionType": "AM/MR", | ||
"canPassToNextUnit": "0", | ||
"standingPlacesSecondClass": "27", | ||
"standingPlacesFirstClass": "9", | ||
"seatsCoupeSecondClass": "0", | ||
"seatsCoupeFirstClass": "0", | ||
"seatsSecondClass": "76", | ||
"seatsFirstClass": "16", | ||
"lengthInMeter": "27", | ||
"hasSemiAutomaticInteriorDoors": "1", | ||
"hasLuggageSection": "0", | ||
"materialSubTypeName": "AM08M_c", | ||
"tractionPosition": "1", | ||
"hasPrmSection": "1", | ||
"hasPriorityPlaces": "1", | ||
"hasBikeSection": "1" | ||
}, | ||
{ | ||
"id": "1", | ||
"materialType": { | ||
"parent_type": "AM08M", | ||
"sub_type": "b", | ||
"orientation": "LEFT" | ||
}, | ||
"hasToilets": "0", | ||
"hasTables": "1", | ||
"hasSecondClassOutlets": "1", | ||
"hasFirstClassOutlets": "1", | ||
"hasHeating": "1", | ||
"hasAirco": "1", | ||
"materialNumber": "8112", | ||
"tractionType": "AM/MR", | ||
"canPassToNextUnit": "0", | ||
"standingPlacesSecondClass": "40", | ||
"standingPlacesFirstClass": "0", | ||
"seatsCoupeSecondClass": "0", | ||
"seatsCoupeFirstClass": "0", | ||
"seatsSecondClass": "104", | ||
"seatsFirstClass": "0", | ||
"lengthInMeter": "27", | ||
"hasSemiAutomaticInteriorDoors": "1", | ||
"hasLuggageSection": "0", | ||
"materialSubTypeName": "AM08M_b", | ||
"tractionPosition": "1", | ||
"hasPrmSection": "0", | ||
"hasPriorityPlaces": "1", | ||
"hasBikeSection": "0" | ||
}, | ||
{ | ||
"id": "2", | ||
"materialType": { | ||
"parent_type": "AM08M", | ||
"sub_type": "a", | ||
"orientation": "RIGHT" | ||
}, | ||
"hasToilets": "0", | ||
"hasTables": "1", | ||
"hasSecondClassOutlets": "1", | ||
"hasFirstClassOutlets": "1", | ||
"hasHeating": "1", | ||
"hasAirco": "1", | ||
"materialNumber": "8112", | ||
"tractionType": "AM/MR", | ||
"canPassToNextUnit": "0", | ||
"standingPlacesSecondClass": "37", | ||
"standingPlacesFirstClass": "9", | ||
"seatsCoupeSecondClass": "0", | ||
"seatsCoupeFirstClass": "0", | ||
"seatsSecondClass": "68", | ||
"seatsFirstClass": "16", | ||
"lengthInMeter": "27", | ||
"hasSemiAutomaticInteriorDoors": "1", | ||
"hasLuggageSection": "0", | ||
"materialSubTypeName": "AM08M_a", | ||
"tractionPosition": "1", | ||
"hasPrmSection": "0", | ||
"hasPriorityPlaces": "1", | ||
"hasBikeSection": "0" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"version": "1.1", | ||
"timestamp": "1581853952", | ||
"disturbance": [ | ||
{ | ||
"id": "0", | ||
"title": "Brux.-Midi/Brus.-Zuid - Amsterdam CS (NL): Incident on the Dutch rail network.", | ||
"description": "Between Brux.-Midi/Brus.-Zuid and Amsterdam CS (NL): Delays and cancellations are possible. Between Rotterdam CS (NL) and Amsterdam CS (NL): Disrupted train traffic. Indefinite duration of the failure. Listen to the announcements, consult the automatic departure boards or plan your trip via the SNCB app or sncb.be for more information.", | ||
"link": "http://www.belgianrail.be/jp/nmbs-realtime/help.exe/en?tpl=showmap_external&tplParamHimMsgInfoGroup=trouble&messageID=41188&channelFilter=custom2,livemap,rss_line_10,twitter,custom1,timetable&", | ||
"type": "disturbance", | ||
"timestamp": "1581853724" | ||
}, | ||
{ | ||
"id": "1", | ||
"title": "Soignies / Zinnik: Failure of a level crossing.", | ||
"description": "Delays between 5 and 15 minutes are possible in both directions. Indefinite duration of the failure. Listen to the announcements, consult the automatic departure boards or plan your trip via the SNCB app or sncb.be for more information.", | ||
"link": "http://www.belgianrail.be/jp/nmbs-realtime/help.exe/en?tpl=showmap_external&tplParamHimMsgInfoGroup=trouble&messageID=41187&channelFilter=custom2,livemap,rss_line_10,twitter,custom1,timetable&", | ||
"type": "disturbance", | ||
"timestamp": "1581849358" | ||
}, | ||
{ | ||
"id": "2", | ||
"title": "Storm warning.", | ||
"description": "On entire network, from saturday 15/02 evening to sunday 16/02 : Delays and cancellations are possible. Listen to the announcements, consult the automatic departure boards or plan your trip via the SNCB app or sncb.be for more information.", | ||
"link": "http://www.belgianrail.be/jp/nmbs-realtime/help.exe/en?tpl=showmap_external&tplParamHimMsgInfoGroup=trouble&messageID=41174&channelFilter=timetable,custom1,twitter,rss_line_10,livemap,custom2&", | ||
"type": "disturbance", | ||
"timestamp": "1581767543" | ||
}, | ||
{ | ||
"id": "3", | ||
"title": "Brux.-Nord/Brus.-Noord - Schaerbeek / Schaarbeek", | ||
"description": "We are conducting work for you between Brux.-Nord/Brus.-Noord and Schaerbeek / Schaarbeek. Detailed information only available in French (FR) and in Dutch (NL).", | ||
"link": "http://www.belgianrail.be/jp/nmbs-realtime/help.exe/en?tpl=showmap_external&tplParamHimMsgInfoGroup=works&messageID=41159&channelFilter=rss_line_90&", | ||
"type": "planned", | ||
"timestamp": "1581691640", | ||
"attachment": "http://www.belgianrail.be/jp/download/brail_him/1581691545283_NL-03003S.pdf" | ||
}, | ||
{ | ||
"id": "4", | ||
"title": "Ostende / Oostende - Anvers-Central / Antwerpen-Centraal", | ||
"description": "We are conducting work for you between Ostende / Oostende and Anvers-Central / Antwerpen-Centraal. Detailed information only available in French (FR) and in Dutch (NL).", | ||
"link": "http://www.belgianrail.be/jp/nmbs-realtime/help.exe/en?tpl=showmap_external&tplParamHimMsgInfoGroup=works&messageID=40825&channelFilter=timetable,rss_line_90,custom2&", | ||
"type": "planned", | ||
"timestamp": "1581691528", | ||
"attachment": "http://www.belgianrail.be/jp/download/brail_him/1580998838767_NL-02045S.pdf" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.