From 59b604bb90dd7aa5cf34c1876a1363677a58c3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= Date: Wed, 9 Apr 2025 18:15:17 +0200 Subject: [PATCH 01/12] fixes #749 --- .../timetable/Netex_52_planned_delay.xml | 208 ++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 examples/functions/timetable/Netex_52_planned_delay.xml diff --git a/examples/functions/timetable/Netex_52_planned_delay.xml b/examples/functions/timetable/Netex_52_planned_delay.xml new file mode 100644 index 000000000..56ea2bb57 --- /dev/null +++ b/examples/functions/timetable/Netex_52_planned_delay.xml @@ -0,0 +1,208 @@ + + + + 2010-12-17T09:30:47.0Z + SYS001 + P1M + An example that contains a service journey, that is delayed during some days. + + + + + + + mybus + http://www.mybuses.eu/stuff + My buses + + + + + + + + + Stops for Winter timetable for route 24 + + + + Line 24 Alpha to Charley + Line 24 + bus + 24 + + + + + + + Alpha & Castle + + 53.0000 + 0.1000 + + timingPoint + Alpha + ALPH + onstreetBus + bus + + + Charley Crescent + + 53.3000 + 0.3000 + + timingPoint + Charley + CHAS + onstreetBus + bus + + + + + During July the bus is delayed by 5 minutes due to construction work. + + + + + + + + regular run + 2025-11-01T00:00:00Z + 2025-12-31T00:00:00Z + false + + + regular run + 2025-07-01T00:00:00Z + 2025-07-31T23:59:00Z + + + regular run + 2025-07-01T00:00:00Z + 2025-07-31T23:59:00Z + + + + + + + + The original journey replaced by 444-1 and 444-2 + replaced + 14:20:00.0Z + + + + + + false + + + + + + + + + + + + false + + + + + + + + + The replacement that is still the same + planned + 14:20:00.0Z + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + The delayed part in July + + + + + + planned + 14:25:00.0Z + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + 2025-01-01 + 2025-12-31 + + + + + + The operator + + fr + + operator + + + + + + + From 15335596dc6ddab56505df83c216daddeac93462 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 9 Apr 2025 16:17:45 +0000 Subject: [PATCH 02/12] Lint and update documentation tables --- .../timetable/Netex_52_planned_delay.xml | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/examples/functions/timetable/Netex_52_planned_delay.xml b/examples/functions/timetable/Netex_52_planned_delay.xml index 56ea2bb57..5a78aabda 100644 --- a/examples/functions/timetable/Netex_52_planned_delay.xml +++ b/examples/functions/timetable/Netex_52_planned_delay.xml @@ -64,10 +64,10 @@ - During July the bus is delayed by 5 minutes due to construction work. + During July the bus is delayed by 5 minutes due to construction work. - + @@ -75,25 +75,26 @@ regular run 2025-11-01T00:00:00Z 2025-12-31T00:00:00Z - false + false + regular run 2025-07-01T00:00:00Z 2025-07-31T23:59:00Z - + regular run 2025-07-01T00:00:00Z 2025-07-31T23:59:00Z - + - - - - The original journey replaced by 444-1 and 444-2 + + + + The original journey replaced by 444-1 and 444-2 replaced 14:20:00.0Z @@ -119,10 +120,10 @@ - - - - The replacement that is still the same + + + + The replacement that is still the same planned 14:20:00.0Z @@ -148,16 +149,15 @@ - - - - - The delayed part in July - - - - - + + + + The delayed part in July + + + + + planned 14:25:00.0Z @@ -168,7 +168,8 @@ false - + + @@ -181,8 +182,7 @@ - - + From 87a6828ad3abc4750b392aed8406d5b4400b7115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= Date: Wed, 9 Apr 2025 20:16:59 +0200 Subject: [PATCH 03/12] more precise about AvailabilityConditionRef --- examples/functions/timetable/Netex_52_planned_delay.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/functions/timetable/Netex_52_planned_delay.xml b/examples/functions/timetable/Netex_52_planned_delay.xml index 5a78aabda..002d02228 100644 --- a/examples/functions/timetable/Netex_52_planned_delay.xml +++ b/examples/functions/timetable/Netex_52_planned_delay.xml @@ -92,7 +92,7 @@ - + The original journey replaced by 444-1 and 444-2 replaced @@ -121,7 +121,7 @@ - + The replacement that is still the same planned @@ -150,7 +150,7 @@ - + The delayed part in July From a2f383266e0425314ed233a6d654cccdfc88949f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= Date: Thu, 10 Apr 2025 10:09:49 +0200 Subject: [PATCH 04/12] Update examples/functions/timetable/Netex_52_planned_delay.xml Co-authored-by: trurlurl <82838870+trurlurl@users.noreply.github.com> --- examples/functions/timetable/Netex_52_planned_delay.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/functions/timetable/Netex_52_planned_delay.xml b/examples/functions/timetable/Netex_52_planned_delay.xml index 002d02228..049212153 100644 --- a/examples/functions/timetable/Netex_52_planned_delay.xml +++ b/examples/functions/timetable/Netex_52_planned_delay.xml @@ -73,7 +73,7 @@ regular run - 2025-11-01T00:00:00Z + 2025-01-01T00:00:00Z 2025-12-31T00:00:00Z false From 016526c95fc150b1929a3dd4e712807b53cb180d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= Date: Thu, 10 Apr 2025 10:14:48 +0200 Subject: [PATCH 05/12] correct AvailabilityConditions --- .../functions/timetable/Netex_52_planned_delay.xml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/examples/functions/timetable/Netex_52_planned_delay.xml b/examples/functions/timetable/Netex_52_planned_delay.xml index 049212153..c80f310bf 100644 --- a/examples/functions/timetable/Netex_52_planned_delay.xml +++ b/examples/functions/timetable/Netex_52_planned_delay.xml @@ -83,10 +83,15 @@ 2025-07-01T00:00:00Z 2025-07-31T23:59:00Z - + regular run - 2025-07-01T00:00:00Z - 2025-07-31T23:59:00Z + 2025-08-01T00:00:00Z + 2025-12-31T23:59:00Z + + + regular run + 2025-01-01T00:00:00Z + 2025-06-30T23:59:00Z @@ -121,7 +126,8 @@ - + + The replacement that is still the same planned From 154e44c6bb13148ed4e4a8f4057ef6dc552c5413 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 10 Apr 2025 08:18:08 +0000 Subject: [PATCH 06/12] Lint and update documentation tables --- examples/functions/timetable/Netex_52_planned_delay.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/functions/timetable/Netex_52_planned_delay.xml b/examples/functions/timetable/Netex_52_planned_delay.xml index c80f310bf..5bacc9c0e 100644 --- a/examples/functions/timetable/Netex_52_planned_delay.xml +++ b/examples/functions/timetable/Netex_52_planned_delay.xml @@ -87,7 +87,7 @@ regular run 2025-08-01T00:00:00Z 2025-12-31T23:59:00Z - + regular run 2025-01-01T00:00:00Z From 7ddd587f9bea4c2cacf6cd76e2f2d03ad0ac6b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= Date: Thu, 10 Apr 2025 17:41:47 +0200 Subject: [PATCH 07/12] remove Z as time is over daylight saving time --- .../timetable/Netex_52_planned_delay.xml | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/functions/timetable/Netex_52_planned_delay.xml b/examples/functions/timetable/Netex_52_planned_delay.xml index 5bacc9c0e..ca2439dd6 100644 --- a/examples/functions/timetable/Netex_52_planned_delay.xml +++ b/examples/functions/timetable/Netex_52_planned_delay.xml @@ -3,7 +3,7 @@ --> - 2010-12-17T09:30:47.0Z + 2010-12-17T09:30:47.0 SYS001 P1M An example that contains a service journey, that is delayed during some days. @@ -73,25 +73,25 @@ regular run - 2025-01-01T00:00:00Z - 2025-12-31T00:00:00Z + 2025-01-01T00:00:00 + 2025-12-31T00:00:00 false regular run - 2025-07-01T00:00:00Z - 2025-07-31T23:59:00Z + 2025-07-01T00:00:00 + 2025-07-31T23:59:00 regular run - 2025-08-01T00:00:00Z - 2025-12-31T23:59:00Z + 2025-08-01T00:00:00 + 2025-12-31T23:59:00 regular run - 2025-01-01T00:00:00Z - 2025-06-30T23:59:00Z + 2025-01-01T00:00:00 + 2025-06-30T23:59:00 @@ -101,7 +101,7 @@ The original journey replaced by 444-1 and 444-2 replaced - 14:20:00.0Z + 14:20:00.0 @@ -110,13 +110,13 @@ false - + - + false @@ -131,7 +131,7 @@ The replacement that is still the same planned - 14:20:00.0Z + 14:20:00.0 @@ -140,13 +140,13 @@ false - + - + false @@ -165,7 +165,7 @@ planned - 14:25:00.0Z + 14:25:00.0 @@ -174,14 +174,14 @@ false - + - + false From afabaa1d650d9a58c8fd39125f57c871443ec495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= Date: Wed, 16 Apr 2025 15:00:44 +0200 Subject: [PATCH 08/12] Update examples/functions/timetable/Netex_52_planned_delay.xml Co-authored-by: trurlurl <82838870+trurlurl@users.noreply.github.com> --- examples/functions/timetable/Netex_52_planned_delay.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/functions/timetable/Netex_52_planned_delay.xml b/examples/functions/timetable/Netex_52_planned_delay.xml index ca2439dd6..a905ed279 100644 --- a/examples/functions/timetable/Netex_52_planned_delay.xml +++ b/examples/functions/timetable/Netex_52_planned_delay.xml @@ -74,7 +74,7 @@ regular run 2025-01-01T00:00:00 - 2025-12-31T00:00:00 + 2025-12-31T23:59:59 false From ee1c6ab227bb53eea32296c110ad3325dda2fbeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= Date: Wed, 16 Apr 2025 15:00:52 +0200 Subject: [PATCH 09/12] Update examples/functions/timetable/Netex_52_planned_delay.xml Co-authored-by: trurlurl <82838870+trurlurl@users.noreply.github.com> --- examples/functions/timetable/Netex_52_planned_delay.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/functions/timetable/Netex_52_planned_delay.xml b/examples/functions/timetable/Netex_52_planned_delay.xml index a905ed279..f40464fc2 100644 --- a/examples/functions/timetable/Netex_52_planned_delay.xml +++ b/examples/functions/timetable/Netex_52_planned_delay.xml @@ -81,7 +81,7 @@ regular run 2025-07-01T00:00:00 - 2025-07-31T23:59:00 + 2025-07-31T23:59:59 regular run From e95cf3cd6dab2590eff55566d48cb7d5ee624092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= Date: Wed, 16 Apr 2025 15:00:59 +0200 Subject: [PATCH 10/12] Update examples/functions/timetable/Netex_52_planned_delay.xml Co-authored-by: trurlurl <82838870+trurlurl@users.noreply.github.com> --- examples/functions/timetable/Netex_52_planned_delay.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/functions/timetable/Netex_52_planned_delay.xml b/examples/functions/timetable/Netex_52_planned_delay.xml index f40464fc2..5aca4c93b 100644 --- a/examples/functions/timetable/Netex_52_planned_delay.xml +++ b/examples/functions/timetable/Netex_52_planned_delay.xml @@ -86,7 +86,7 @@ regular run 2025-08-01T00:00:00 - 2025-12-31T23:59:00 + 2025-12-31T23:59:59 regular run From 2a248ed196d119fa3d18707d0e263eeb26b7776f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= Date: Wed, 16 Apr 2025 15:01:06 +0200 Subject: [PATCH 11/12] Update examples/functions/timetable/Netex_52_planned_delay.xml Co-authored-by: trurlurl <82838870+trurlurl@users.noreply.github.com> --- examples/functions/timetable/Netex_52_planned_delay.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/functions/timetable/Netex_52_planned_delay.xml b/examples/functions/timetable/Netex_52_planned_delay.xml index 5aca4c93b..721274fd7 100644 --- a/examples/functions/timetable/Netex_52_planned_delay.xml +++ b/examples/functions/timetable/Netex_52_planned_delay.xml @@ -91,7 +91,7 @@ regular run 2025-01-01T00:00:00 - 2025-06-30T23:59:00 + 2025-06-30T23:59:59 From 3e092ed682799edb53506135e7ad6c24decfd116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= Date: Sat, 19 Apr 2025 13:16:00 +0200 Subject: [PATCH 12/12] removing milliseconds --- NeTEx.spp | 3 +++ .../timetable/Netex_52_planned_delay.xml | 18 +++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/NeTEx.spp b/NeTEx.spp index 4140471e2..e44f23557 100644 --- a/NeTEx.spp +++ b/NeTEx.spp @@ -734,6 +734,9 @@ + + + diff --git a/examples/functions/timetable/Netex_52_planned_delay.xml b/examples/functions/timetable/Netex_52_planned_delay.xml index 721274fd7..98639d54a 100644 --- a/examples/functions/timetable/Netex_52_planned_delay.xml +++ b/examples/functions/timetable/Netex_52_planned_delay.xml @@ -101,7 +101,7 @@ The original journey replaced by 444-1 and 444-2 replaced - 14:20:00.0 + 14:20:00 @@ -110,13 +110,13 @@ false - + - + false @@ -131,7 +131,7 @@ The replacement that is still the same planned - 14:20:00.0 + 14:20:00 @@ -140,13 +140,13 @@ false - + - + false @@ -165,7 +165,7 @@ planned - 14:25:00.0 + 14:25:00 @@ -174,14 +174,14 @@ false - + - + false