Repository navigation
Expand file tree
/
Copy pathojp-shared.yml
More file actions
1602 lines (1549 loc) · 44.5 KB
/
Copy pathojp-shared.yml
File metadata and controls
1602 lines (1549 loc) · 44.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Empty API
version: 1.0.0
paths: {}
components:
schemas:
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__PersonalModesEnumeration
PersonalModesEnumeration:
type: string
enum: [ foot, bicycle, car, motorcycle, truck, scooter, other ]
xml:
name: PersonalModes
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__PersonalModesOfOperationEnumeration
PersonalModesOfOperationEnumeration:
type: string
enum: [ self, own, otherOwned, privateLift, lease ]
xml:
name: PersonalModesOfOperation
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__VehicleModesOfTransportEnumeration
VehicleModesOfTransportEnum:
type: string
enum: [
air,
bus, coach, trolleyBus,
metro, rail, tram,
water, ferry,
cableway, funicular, lift, telecabin,
other, unknown,
]
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__UseRealtimeDataEnumeration
UseRealtimeDataEnum:
type: string
enum: [full, explanatory, none]
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__PlaceTypeEnumeration
PlaceTypeEnum:
type: string
enum: [stop, address, poi, location, topographicPlace]
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__SituationSourceTypeEnumeration
SituationSourceTypeEnum:
type: string
enum: [
directReport,
email, phone, fax,
post, feed, radio, tv,
web, pager, text,
other,
]
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__PerspectiveEnumeration
PerspectiveEnum:
type: string
enum: [general, stopPoint, vehicleJourney]
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__TransferTypeEnumeration
TransferTypeEnum:
type: string
enum: [walk, remainInVehicle, changeWithinVehicle, guaranteedConnection]
xml:
name: TransferType
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__FareClassEnumeration
FareClassEnum:
type: string
enum: [unknown, firstClass, secondClass]
xml:
name: FareClass
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__OccupancyEnumeration
OccupancyLevelEnum:
type: string
enum: [unknown, empty, manySeatsAvailable, fewSeatsAvailable, standingRoomOnly]
xml:
name: FareClass
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__RailSubmodesOfTransportEnumeration
# highSpeedRail - IC
# international - ICE, TGV, EC, RJX, NJ, EN
# interregionalRail - IR, IRN, IRE
# railShuttle - ATZ
# local - S, SN, RB, RE, PE
# vehicleTunnelTransportRailService - used by ATZ
RailSubmodeEnum:
type: string
enum: [international, highSpeedRail, interregionalRail, railShuttle, local, vehicleTunnelTransportRailService]
xml:
name: RailSubmode
namespace: "http://www.siri.org.uk/siri"
prefix: siri
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__OptimisationMethodEnumeration
OptimisationMethodEnum:
type: string
enum: [fastest, minChanges, leastWalking, leastCost, leastDistance, earliestArrival, latestDeparture, earliestArrivalAndLatestDeparture, minNonLevelEntrances, minStairs, bestForVisualImpairment, bestForAuditoryImpairment, environmentalSafety, extraSafe, extraReliable, scenic, quietTravel]
InternationalText:
type: object
xml:
name: InternationalText
required:
- text
properties:
text:
type: string
xml:
name: Text
GeoPosition:
type: object
xml:
name: GeoPosition
required:
- longitude
- latitude
properties:
longitude:
type: number
xml:
name: Longitude
namespace: "http://www.siri.org.uk/siri"
prefix: siri
latitude:
type: number
xml:
name: Latitude
namespace: "http://www.siri.org.uk/siri"
prefix: siri
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__PlaceRefStructure
PlaceRef:
type: object
required:
- name
properties:
stopPointRef:
type: string
xml:
name: StopPointRef
namespace: "http://www.siri.org.uk/siri"
prefix: siri
stopPlaceRef:
type: string
xml:
name: StopPlaceRef
geoPosition:
$ref: '#/components/schemas/GeoPosition'
xml:
name: GeoPosition
name:
$ref: '#/components/schemas/InternationalText'
xml:
name: Name
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__ItModesStructure
ItModesStructure:
type: object
required:
- personalMode
- personalModeOfOperation
xml:
name: ItModes
properties:
personalMode:
$ref: '#/components/schemas/PersonalModesEnumeration'
xml:
name: PersonalMode
personalModeOfOperation:
type: array
xml:
name: PersonalModeOfOperation
items:
$ref: '#/components/schemas/PersonalModesOfOperationEnumeration'
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__IndividualTransportOptionStructure
IndividualTransportOptionStructure:
type: object
required:
- itModeAndModeOfOperation
xml:
name: IndividualTransportOption
properties:
itModeAndModeOfOperation:
$ref: '#/components/schemas/ItModesStructure'
xml:
name: ItModeAndModeOfOperation
maxDistance:
type: number
xml:
name: MaxDistance
maxDuration:
type: string
xml:
name: MaxDuration
minDistance:
type: number
xml:
name: MinDistance
minDuration:
type: string
xml:
name: MinDuration
speed:
type: number
xml:
name: Speed
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__PlaceContextStructure
PlaceContext:
type: object
xml:
name: PlaceContext
required:
- placeRef
- individualTransportOption
properties:
placeRef:
$ref: '#/components/schemas/PlaceRef'
xml:
name: PlaceRef
depArrTime:
type: string
xml:
name: DepArrTime
individualTransportOption:
type: array
xml:
name: IndividualTransportOption
items:
$ref: "#/components/schemas/IndividualTransportOptionStructure"
ServiceRequestContext:
type: object
xml:
name: ServiceRequestContext
namespace: "http://www.siri.org.uk/siri"
prefix: siri
properties:
language:
type: string
xml:
name: Language
namespace: "http://www.siri.org.uk/siri"
prefix: siri
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__OsmTagStructure
OsmTagStructure:
type: object
required:
- tag
- value
properties:
tag:
type: string
xml:
name: Tag
value:
type: string
xml:
name: Value
xml:
name: OsmTag
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__PointOfInterestCategoryStructure
PointOfInterestCategoryStructure:
type: object
xml:
name: PointOfInterestCategory
required:
- osmTag
- pointOfInterestClassification
properties:
osmTag:
type: array
xml:
name: OsmTag
items:
$ref: "#/components/schemas/OsmTagStructure"
pointOfInterestClassification:
type: array
xml:
name: PointOfInterestClassification
items:
type: string
xml:
name: PointOfInterestClassification
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__StopPointStructure
StopPoint:
type: object
xml:
name: StopPoint
required:
- stopPointRef
- stopPointName
properties:
stopPointRef:
type: string
xml:
name: StopPointRef
stopPointName:
$ref: '#/components/schemas/InternationalText'
xml:
name: StopPointName
parentRef:
type: string
xml:
name: ParentRef
plannedQuay:
$ref: '#/components/schemas/InternationalText'
xml:
name: PlannedQuay
estimatedQuay:
$ref: '#/components/schemas/InternationalText'
xml:
name: EstimatedQuay
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__StopPlaceStructure
StopPlace:
type: object
xml:
name: StopPoint
required:
- stopPlaceRef
- stopPlaceName
properties:
stopPlaceRef:
type: string
xml:
name: StopPlaceRef
stopPlaceName:
$ref: '#/components/schemas/InternationalText'
xml:
name: StopPlaceName
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__TopographicPlaceStructure
TopographicPlace:
type: object
xml:
name: StopPoint
required:
- topographicPlaceCode
- topographicPlaceName
properties:
topographicPlaceCode:
type: string
xml:
name: TopographicPlaceCode
topographicPlaceName:
$ref: '#/components/schemas/InternationalText'
xml:
name: TopographicPlaceName
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__CategoryKeyValueType
CategoryKeyValueType:
type: object
required:
- key
- value
xml:
name: CategoryKeyValue
properties:
key:
type: string
xml:
name: Key
value:
type: string
xml:
name: Value
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__PointOfInterestStructure
PointOfInterest:
type: object
xml:
name: PointOfInterest
required:
- publicCode
- name
- pointOfInterestCategory
properties:
publicCode:
type: string
xml:
name: PublicCode
name:
$ref: '#/components/schemas/InternationalText'
xml:
name: Name
pointOfInterestCategory:
type: array
xml:
name: PointOfInterestCategory
items:
$ref: "#/components/schemas/PointOfInterestCategoryStructure"
privateCode:
type: object
required:
- system
- value
xml:
name: PrivateCode
properties:
system:
type: string
xml:
name: System
value:
type: string
xml:
name: Value
pOIAdditionalInformation:
type: object
required:
- pOIAdditionalInformation
xml:
name: POIAdditionalInformation
properties:
pOIAdditionalInformation:
type: array
xml:
name: POIAdditionalInformation
items:
$ref: '#/components/schemas/CategoryKeyValueType'
topographicPlaceRef:
type: string
xml:
name: TopographicPlaceRef
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__AddressStructure
Address:
type: object
xml:
name: Address
required:
- publicCode
- name
properties:
publicCode:
type: string
xml:
name: PublicCode
name:
$ref: '#/components/schemas/InternationalText'
xml:
name: Name
postCode:
type: string
xml:
name: PostCode
topographicPlaceName:
type: string
xml:
name: TopographicPlaceName
topographicPlaceRef:
type: string
xml:
name: TopographicPlaceRef
street:
type: string
xml:
name: Street
houseNumber:
type: string
xml:
name: HouseNumber
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__ModeStructure
ModeStructure:
type: object
xml:
name: Mode
required:
- ptMode
properties:
ptMode:
$ref: '#/components/schemas/VehicleModesOfTransportEnum'
xml:
name: PtMode
airSubmode:
type: string
xml:
name: AirSubmode
namespace: "http://www.siri.org.uk/siri"
prefix: siri
busSubmode:
type: string
xml:
name: BusSubmode
namespace: "http://www.siri.org.uk/siri"
prefix: siri
coachSubmode:
type: string
xml:
name: CoachSubmode
namespace: "http://www.siri.org.uk/siri"
prefix: siri
funicularSubmode:
type: string
xml:
name: FunicularSubmode
namespace: "http://www.siri.org.uk/siri"
prefix: siri
metroSubmode:
type: string
xml:
name: MetroSubmode
namespace: "http://www.siri.org.uk/siri"
prefix: siri
tramSubmode:
type: string
xml:
name: TramSubmode
namespace: "http://www.siri.org.uk/siri"
prefix: siri
telecabinSubmode:
type: string
xml:
name: TelecabinSubmode
namespace: "http://www.siri.org.uk/siri"
prefix: siri
railSubmode:
$ref: "#/components/schemas/RailSubmodeEnum"
xml:
name: RailSubmode
namespace: "http://www.siri.org.uk/siri"
prefix: siri
waterSubmode:
type: string
xml:
name: WaterSubmode
namespace: "http://www.siri.org.uk/siri"
prefix: siri
name:
$ref: '#/components/schemas/InternationalText'
xml:
name: Name
shortName:
$ref: '#/components/schemas/InternationalText'
xml:
name: ShortName
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__PlaceStructure
Place:
type: object
xml:
name: Place
required:
- name
- geoPosition
- mode
- attribute
properties:
stopPoint:
$ref: '#/components/schemas/StopPoint'
xml:
name: StopPoint
stopPlace:
$ref: '#/components/schemas/StopPlace'
xml:
name: StopPlace
topographicPlace:
$ref: '#/components/schemas/TopographicPlace'
xml:
name: TopographicPlace
pointOfInterest:
$ref: '#/components/schemas/PointOfInterest'
xml:
name: PointOfInterest
address:
$ref: '#/components/schemas/Address'
xml:
name: Address
name:
$ref: '#/components/schemas/InternationalText'
xml:
name: Name
geoPosition:
$ref: '#/components/schemas/GeoPosition'
xml:
name: GeoPosition
mode:
type: array
xml:
name: Mode
items:
$ref: '#/components/schemas/ModeStructure'
attribute:
type: array
xml:
name: Attribute
items:
$ref: '#/components/schemas/GeneralAttribute'
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__TextualContentStructure
TextualContentStructure:
type: object
xml:
name: TextualContent
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- summaryContent
- descriptionContent
- consequenceContent
- recommendationContent
- remarkContent
- infoLink
properties:
summaryContent:
type: object
xml:
name: SummaryContent
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- summaryText
properties:
summaryText:
type: string
xml:
name: SummaryText
namespace: "http://www.siri.org.uk/siri"
prefix: siri
reasonContent:
type: object
xml:
name: ReasonContent
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- reasonText
properties:
reasonText:
type: string
xml:
name: ReasonText
namespace: "http://www.siri.org.uk/siri"
prefix: siri
descriptionContent:
type: array
items:
type: object
xml:
name: DescriptionContent
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- descriptionText
properties:
descriptionText:
type: string
xml:
name: DescriptionText
namespace: "http://www.siri.org.uk/siri"
prefix: siri
consequenceContent:
type: array
items:
type: object
xml:
name: ConsequenceContent
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- consequenceText
properties:
consequenceText:
type: string
xml:
name: ConsequenceText
namespace: "http://www.siri.org.uk/siri"
prefix: siri
recommendationContent:
type: array
items:
type: object
xml:
name: RecommendationContent
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- recommendationText
properties:
recommendationText:
type: string
xml:
name: RecommendationText
namespace: "http://www.siri.org.uk/siri"
prefix: siri
durationContent:
type: object
xml:
name: DurationContent
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- durationText
properties:
durationText:
type: string
xml:
name: DurationText
namespace: "http://www.siri.org.uk/siri"
prefix: siri
remarkContent:
type: array
items:
type: object
xml:
name: RemarkContent
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- remark
properties:
remark:
type: string
xml:
name: Remark
namespace: "http://www.siri.org.uk/siri"
prefix: siri
infoLink:
type: array
items:
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__InfoLinkStructure
type: object
xml:
name: InfoLink
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- uri
properties:
uri:
type: string
xml:
name: Uri
namespace: "http://www.siri.org.uk/siri"
prefix: siri
label:
type: array
xml:
name: Label
items:
type: string
xml:
name: Label
namespace: "http://www.siri.org.uk/siri"
prefix: siri
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__PassengerInformationActionStructure
PassengerInformationActionStructure:
type: object
xml:
name: PassengerInformationAction
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- actionRef
- recordedAtTime
- perspective
- textualContent
properties:
actionRef:
type: string
xml:
name: ActionRef
namespace: "http://www.siri.org.uk/siri"
prefix: siri
recordedAtTime:
type: string
xml:
name: RecordedAtTime
namespace: "http://www.siri.org.uk/siri"
prefix: siri
perspective:
$ref: "#/components/schemas/PerspectiveEnum"
xml:
name: Perspective
namespace: "http://www.siri.org.uk/siri"
prefix: siri
textualContent:
type: array
xml:
name: TextualContent
namespace: "http://www.siri.org.uk/siri"
prefix: siri
items:
$ref: "#/components/schemas/TextualContentStructure"
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__PublishingActionStructure
ActionsStructure:
type: object
xml:
name: PublishingAction
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- publishAtScope
- passengerInformationAction
properties:
publishAtScope:
type: object
required:
- scopeType
xml:
name: PublishAtScope
namespace: "http://www.siri.org.uk/siri"
prefix: siri
properties:
scopeType:
# TODO - make it enum - local-type: typedef-50.4
type: string
xml:
name: ScopeType
namespace: "http://www.siri.org.uk/siri"
prefix: siri
passengerInformationAction:
type: array
xml:
name: PassengerInformationAction
namespace: "http://www.siri.org.uk/siri"
prefix: siri
items:
$ref: "#/components/schemas/PassengerInformationActionStructure"
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__PtSituationElementStructure
PtSituationElementStructure:
type: object
xml:
name: PtSituationElement
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- creationTime
- situationNumber
- source
- validityPeriod
- alertCause
properties:
creationTime:
type: string
xml:
name: CreationTime
namespace: "http://www.siri.org.uk/siri"
prefix: siri
participantRef:
type: string
xml:
name: ParticipantRef
namespace: "http://www.siri.org.uk/siri"
prefix: siri
situationNumber:
type: string
xml:
name: SituationNumber
namespace: "http://www.siri.org.uk/siri"
prefix: siri
version:
type: number
xml:
name: Version
namespace: "http://www.siri.org.uk/siri"
prefix: siri
source:
type: object
xml:
name: Source
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- sourceType
properties:
sourceType:
$ref: "#/components/schemas/SituationSourceTypeEnum"
xml:
name: SourceType
namespace: "http://www.siri.org.uk/siri"
prefix: siri
validityPeriod:
type: array
xml:
name: ValidityPeriod
namespace: "http://www.siri.org.uk/siri"
prefix: siri
items:
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__HalfOpenTimestampOutputRangeStructure
type: object
xml:
name: HalfOpenTimestampOutputRangeStructure
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- startTime
properties:
startTime:
type: string
xml:
name: StartTime
namespace: "http://www.siri.org.uk/siri"
prefix: siri
endTime:
type: string
xml:
name: EndTime
namespace: "http://www.siri.org.uk/siri"
prefix: siri
alertCause:
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__AlertCauseEnumeration
# TODO - make it enum
type: string
xml:
name: AlertCause
namespace: "http://www.siri.org.uk/siri"
prefix: siri
priority:
type: string
xml:
name: Priority
namespace: "http://www.siri.org.uk/siri"
prefix: siri
scopeType:
# TODO - make it enum - local-type: typedef-50.4
type: string
xml:
name: ScopeType
namespace: "http://www.siri.org.uk/siri"
prefix: siri
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__ActionsStructure
publishingActions:
type: object
xml:
name: PublishingActions
namespace: "http://www.siri.org.uk/siri"
prefix: siri
required:
- publishingAction
properties:
publishingAction:
type: array
items:
$ref: "#/components/schemas/ActionsStructure"
xml:
name: PublishingAction
namespace: "http://www.siri.org.uk/siri"
prefix: siri
SharedServiceArrivalDeparture:
type: object
xml:
name: SharedServiceArrivalDeparture
wrapped: false
required:
- timetabledTime
properties:
timetabledTime:
type: string
xml:
name: TimetabledTime
estimatedTime:
type: string
xml:
name: EstimatedTime
# https://vdvde.github.io/OJP/develop/documentation-tables/siri.html#type_siri__VehicleOccupancyStructure
ExpectedDepartureOccupancyStructure:
type: object
xml:
name: ExpectedDepartureOccupancy
required:
- fareClass
- occupancyLevel
properties:
fareClass:
$ref: "#/components/schemas/FareClassEnum"
xml:
name: FareClass
namespace: "http://www.siri.org.uk/siri"
prefix: siri
occupancyLevel:
$ref: "#/components/schemas/OccupancyLevelEnum"
xml:
name: OccupancyLevel
namespace: "http://www.siri.org.uk/siri"
prefix: siri
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__LegBoardStructure
# https://vdvde.github.io/OJP/develop/documentation-tables/ojp.html#type_ojp__CallAtStopStructure
CallAtStop:
type: object
xml:
name: CallAtStop
required:
- stopPointRef
- stopPointName