Skip to content

Commit

Permalink
chore: Update netex repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tefra committed Mar 30, 2024
1 parent 9e1a025 commit 655d2aa
Show file tree
Hide file tree
Showing 58 changed files with 286 additions and 297 deletions.
2 changes: 1 addition & 1 deletion netex/NeTEx
Submodule NeTEx updated 62 files
+2 −2 .github/scripts/validate-and-lint.sh
+57 −3,004 README.md
+2,274 −0 change_log.md
+10 −3 examples/functions/fares/Netex_101.21_TfL_GeographicFares_UnitZone_MultipleProduct.xml
+2 −0 examples/functions/newModes/NewModes-CarClubExample.xml
+3 −1 examples/functions/newModes/NewModes-CarPoolingExample.xml
+3 −1 examples/functions/newModes/NewModes-ChauffeuredServiceExample.xml
+785 −677 examples/standards/era_uic/Netex_Eurostar mapping_era_1.xml
+694 −561 examples/standards/era_uic/Netex_Eurostar mapping_era_2.xml
+5 −3 examples/standards/era_uic/Netex_era_uic_calendar.xml
+44 −28 examples/standards/era_uic/Netex_era_uic_joiningsplitting.xml
+14 −7 examples/standards/era_uic/Netex_era_uic_simpletimetable.xml
+25 −17 examples/standards/era_uic/Netex_era_uic_timetable_hack_01.xml
+1 −1 examples/standards/fxc/FX-PI-01_UK_FBRI_LINE-FARE_WOE-Bristol-Line-48-trip-(stage)_2017-01-01.xml
+1 −1 examples/standards/fxc/FX-PI-01_UK_FBRI_NETWORK-FARE_WOE-Bristol-pass-(Z2Z)_2017-01-01.xml
+6 −6 examples/standards/norway/network/FlexibleLine863-with-connection.xml
+14 −7 examples/standards/tap_tsi/TAP-SKDUPD-example1-basic.xml
+17 −7 examples/standards/tap_tsi/TAP-SKDUPD-example1.xml
+17 −8 examples/standards/tap_tsi/TAP-SKDUPD-example2.1-Classic_train.xml
+61 −40 examples/standards/tap_tsi/TAP-SKDUPD-example2.2-Coach_group.xml
+17 −9 examples/standards/tap_tsi/TAP-SKDUPD-example2.3-Leo_Express.xml
+18 −9 examples/standards/tap_tsi/TAP-SKDUPD-example2.4-Load_and_Unload.xml
+17 −8 examples/standards/tap_tsi/TAP-SKDUPD-example2.5-Interchange.xml
+17 −8 examples/standards/tap_tsi/TAP-SKDUPD-example2.6-Check_In.xml
+18 −9 examples/standards/tap_tsi/TAP-SKDUPD-example2.7-Tariff_and_Reservation.xml
+0 −672 examples/standards/tap_tsi/TAP-SKDUPD-example2.7-Tarrif_and_Reservation.xml
+161 −79 examples/standards/tap_tsi/TAP-SKDUPD-example2.xml
+4 −4 examples/standards/txc/uk_nap_extract1_minimal.xml
+4 −4 examples/standards/txc/uk_nap_naptan_stops_extract1.xml
+6 −6 xsd/NeTEx_publication.xsd
+6 −6 xsd/NeTEx_publication_timetable.xsd
+3 −3 xsd/netex_framework/netex_genericFramework/netex_accessibility/netex_acsb_passengerMobility.xsd
+2 −2 xsd/netex_framework/netex_genericFramework/netex_alternativeName_version.xsd
+2 −2 xsd/netex_framework/netex_genericFramework/netex_assignment_version.xsd
+1 −1 xsd/netex_framework/netex_genericFramework/netex_pointAndLink_support.xsd
+1 −1 xsd/netex_framework/netex_responsibility/netex_alternativeText_version.xsd
+1 −1 xsd/netex_framework/netex_responsibility/netex_relationship_support.xsd
+1 −1 xsd/netex_framework/netex_reusableComponents/netex_noticeAssignment_version.xsd
+1 −1 xsd/netex_framework/netex_reusableComponents/netex_notice_version.xsd
+1 −1 xsd/netex_framework/netex_reusableComponents/netex_securityList_version.xsd
+9 −9 xsd/netex_framework/netex_utility/netex_utility_types.xsd
+6 −0 xsd/netex_part_1/part1_frames/netex_siteFrame_version.xsd
+5 −5 xsd/netex_part_1/part1_ifopt/netex_ifopt_stopPlace_version.xsd
+17 −1 xsd/netex_part_1/part1_ifopt/netex_taxiPlace_version.xsd
+9 −6 xsd/netex_part_1/part1_networkDescription/netex_line_version.xsd
+1 −1 xsd/netex_part_1/part1_networkDescription/netex_networkRestriction_support.xsd
+1 −1 xsd/netex_part_1/part1_networkDescription/netex_routeInstruction_version.xsd
+3 −4 xsd/netex_part_1/part1_tacticalPlanning/netex_journeyPattern_version.xsd
+1 −1 xsd/netex_part_1/part1_tacticalPlanning/netex_passengerInformationEquipment_support.xsd
+1 −1 xsd/netex_part_1/part1_tacticalPlanning/netex_passengerInformationEquipment_version.xsd
+3 −4 xsd/netex_part_1/part1_tacticalPlanning/netex_servicePattern_version.xsd
+1 −1 xsd/netex_part_1/part1_tacticalPlanning/netex_stopAssignment_version.xsd
+0 −61 xsd/netex_part_2/part2_journeyTimes/netex_call_version.xsd
+2 −2 xsd/netex_part_2/part2_journeyTimes/netex_coupledJourney_version.xsd
+1 −1 xsd/netex_part_3/part3_fares/netex_farePrice_version.xsd
+1 −1 xsd/netex_part_3/part3_fares/netex_fareSeries_support.xsd
+2 −2 xsd/netex_part_3/part3_fares/netex_fareSeries_version.xsd
+1 −1 xsd/netex_part_3/part3_fares/netex_fareStructure_support.xsd
+1 −1 xsd/netex_part_3/part3_fares/netex_fareStructure_version.xsd
+5 −5 xsd/netex_part_3/part3_fares/netex_fareTable_version.xsd
+1 −1 xsd/netex_part_3/part3_fares/netex_salesOfferPackage_version.xsd
+1 −1 xsd/netex_part_3/part3_salesTransactions/netex_customerPurchasePackage_version.xsd
14 changes: 6 additions & 8 deletions netex/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@
from .call import Call
from .call_abstract import CallAbstract
from .call_versioned_child_structure import CallVersionedChildStructure
from .call_z import CallZ
from .calls_rel_structure import CallsRelStructure
from .cancelling import Cancelling
from .cancelling_ref import CancellingRef
Expand Down Expand Up @@ -1154,7 +1153,6 @@
from .dated_call_versioned_child_structure import (
DatedCallVersionedChildStructure,
)
from .dated_call_z import DatedCallZ
from .dated_calls_rel_structure import DatedCallsRelStructure
from .dated_passing_time import DatedPassingTime
from .dated_passing_time_versioned_child_structure import (
Expand Down Expand Up @@ -3891,6 +3889,7 @@
from .property_of_day import PropertyOfDay
from .property_of_day_structure import PropertyOfDayStructure
from .propulsion_type_enumeration import PropulsionTypeEnumeration
from .psychosensory_need_enumeration import PsychosensoryNeedEnumeration
from .public_use_enumeration import PublicUseEnumeration
from .publication_delivery import PublicationDelivery
from .publication_delivery_structure import PublicationDeliveryStructure
Expand Down Expand Up @@ -3929,7 +3928,6 @@
from .purposes_of_grouping_in_frame_rel_structure import (
PurposesOfGroupingInFrameRelStructure,
)
from .pyschosensory_need_enumeration import PyschosensoryNeedEnumeration
from .quality_structure_factor import QualityStructureFactor
from .quality_structure_factor_abstract import QualityStructureFactorAbstract
from .quality_structure_factor_price import QualityStructureFactorPrice
Expand Down Expand Up @@ -5066,6 +5064,7 @@
from .taxi_rank_ref_structure import TaxiRankRefStructure
from .taxi_rank_refs_rel_structure import TaxiRankRefsRelStructure
from .taxi_rank_version_structure import TaxiRankVersionStructure
from .taxi_ranks_in_frame_rel_structure import TaxiRanksInFrameRelStructure
from .taxi_service import TaxiService
from .taxi_service_place_assignment import TaxiServicePlaceAssignment
from .taxi_service_place_assignment_ref import TaxiServicePlaceAssignmentRef
Expand Down Expand Up @@ -5723,7 +5722,7 @@
from .type_of_frame_ref import TypeOfFrameRef
from .type_of_frame_ref_structure import TypeOfFrameRefStructure
from .type_of_frame_refs_rel_structure import TypeOfFrameRefsRelStructure
from .type_of_infolink_enumeration import TypeOfInfolinkEnumeration
from .type_of_info_link_enumeration import TypeOfInfoLinkEnumeration
from .type_of_journey_pattern import TypeOfJourneyPattern
from .type_of_journey_pattern_ref import TypeOfJourneyPatternRef
from .type_of_journey_pattern_ref_structure import (
Expand Down Expand Up @@ -7097,7 +7096,6 @@
"Call",
"CallAbstract",
"CallVersionedChildStructure",
"CallZ",
"CallsRelStructure",
"Cancelling",
"CancellingRef",
Expand Down Expand Up @@ -7515,7 +7513,6 @@
"DataSupplyRequestStructure",
"DatedCall",
"DatedCallVersionedChildStructure",
"DatedCallZ",
"DatedCallsRelStructure",
"DatedPassingTime",
"DatedPassingTimeVersionedChildStructure",
Expand Down Expand Up @@ -9310,6 +9307,7 @@
"PropertyOfDay",
"PropertyOfDayStructure",
"PropulsionTypeEnumeration",
"PsychosensoryNeedEnumeration",
"PublicUseEnumeration",
"PublicationDelivery",
"PublicationDeliveryStructure",
Expand All @@ -9336,7 +9334,6 @@
"PurposeOfJourneyPartitionRefStructure",
"PurposeOfJourneyPartitionValueStructure",
"PurposesOfGroupingInFrameRelStructure",
"PyschosensoryNeedEnumeration",
"QualityStructureFactor",
"QualityStructureFactorAbstract",
"QualityStructureFactorPrice",
Expand Down Expand Up @@ -10113,6 +10110,7 @@
"TaxiRankRefStructure",
"TaxiRankRefsRelStructure",
"TaxiRankVersionStructure",
"TaxiRanksInFrameRelStructure",
"TaxiService",
"TaxiServicePlaceAssignment",
"TaxiServicePlaceAssignmentRef",
Expand Down Expand Up @@ -10528,7 +10526,7 @@
"TypeOfFrameRef",
"TypeOfFrameRefStructure",
"TypeOfFrameRefsRelStructure",
"TypeOfInfolinkEnumeration",
"TypeOfInfoLinkEnumeration",
"TypeOfJourneyPattern",
"TypeOfJourneyPatternRef",
"TypeOfJourneyPatternRefStructure",
Expand Down
12 changes: 0 additions & 12 deletions netex/models/call_z.py

This file was deleted.

14 changes: 1 addition & 13 deletions netex/models/calls_rel_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
from typing import List, Union

from .call import Call
from .call_z import CallZ
from .dated_call import DatedCall
from .dated_call_z import DatedCallZ
from .strict_containment_aggregation_structure import (
StrictContainmentAggregationStructure,
)
Expand All @@ -17,26 +15,16 @@ class CallsRelStructure(StrictContainmentAggregationStructure):
class Meta:
name = "calls_RelStructure"

call: List[Union[DatedCallZ, DatedCall, CallZ, Call]] = field(
call: List[Union[DatedCall, Call]] = field(
default_factory=list,
metadata={
"type": "Elements",
"choices": (
{
"name": "DatedCall-Z",
"type": DatedCallZ,
"namespace": "http://www.netex.org.uk/netex",
},
{
"name": "DatedCall",
"type": DatedCall,
"namespace": "http://www.netex.org.uk/netex",
},
{
"name": "Call-Z",
"type": CallZ,
"namespace": "http://www.netex.org.uk/netex",
},
{
"name": "Call",
"type": Call,
Expand Down
14 changes: 0 additions & 14 deletions netex/models/dated_call_z.py

This file was deleted.

4 changes: 2 additions & 2 deletions netex/models/info_link_structure.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass, field
from typing import List, Optional

from .type_of_infolink_enumeration import TypeOfInfolinkEnumeration
from .type_of_info_link_enumeration import TypeOfInfoLinkEnumeration

__NAMESPACE__ = "http://www.netex.org.uk/netex"

Expand All @@ -14,7 +14,7 @@ class InfoLinkStructure:
"required": True,
},
)
type_of_info_link: List[TypeOfInfolinkEnumeration] = field(
type_of_info_link: List[TypeOfInfoLinkEnumeration] = field(
default_factory=list,
metadata={
"name": "typeOfInfoLink",
Expand Down
15 changes: 2 additions & 13 deletions netex/models/journey_patterns_in_frame_rel_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from .containment_aggregation_structure import ContainmentAggregationStructure
from .dead_run_journey_pattern import DeadRunJourneyPattern
from .journey_pattern_view import JourneyPatternView
from .sections_in_sequence_rel_structure import JourneyPattern
from .service_journey_pattern import ServiceJourneyPattern

Expand All @@ -15,13 +14,8 @@ class JourneyPatternsInFrameRelStructure(ContainmentAggregationStructure):
class Meta:
name = "journeyPatternsInFrame_RelStructure"

choice: List[
Union[
ServiceJourneyPattern,
DeadRunJourneyPattern,
JourneyPattern,
JourneyPatternView,
]
journey_pattern: List[
Union[ServiceJourneyPattern, DeadRunJourneyPattern, JourneyPattern]
] = field(
default_factory=list,
metadata={
Expand All @@ -42,11 +36,6 @@ class Meta:
"type": JourneyPattern,
"namespace": "http://www.netex.org.uk/netex",
},
{
"name": "JourneyPatternView",
"type": JourneyPatternView,
"namespace": "http://www.netex.org.uk/netex",
},
),
},
)
30 changes: 13 additions & 17 deletions netex/models/line_version_structure.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import List, Optional, Union
from typing import List, Optional

from .accessibility_assessment import AccessibilityAssessment
from .all_vehicle_modes_of_transport_enumeration import (
Expand Down Expand Up @@ -118,24 +118,20 @@ class Meta:
"namespace": "http://www.netex.org.uk/netex",
},
)
authority_ref_or_operator_ref: Optional[
Union[AuthorityRef, OperatorRef]
] = field(
authority_ref: Optional[AuthorityRef] = field(
default=None,
metadata={
"type": "Elements",
"choices": (
{
"name": "AuthorityRef",
"type": AuthorityRef,
"namespace": "http://www.netex.org.uk/netex",
},
{
"name": "OperatorRef",
"type": OperatorRef,
"namespace": "http://www.netex.org.uk/netex",
},
),
"name": "AuthorityRef",
"type": "Element",
"namespace": "http://www.netex.org.uk/netex",
},
)
operator_ref: Optional[OperatorRef] = field(
default=None,
metadata={
"name": "OperatorRef",
"type": "Element",
"namespace": "http://www.netex.org.uk/netex",
},
)
additional_operators: Optional[TransportOrganisationRefsRelStructure] = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__NAMESPACE__ = "http://www.netex.org.uk/netex"


class PyschosensoryNeedEnumeration(Enum):
class PsychosensoryNeedEnumeration(Enum):
VISUAL_IMPAIRMENT = "visualImpairment"
AUDITORY_IMPAIRMENT = "auditoryImpairment"
COGNITIVE_INPUT_IMPAIRMENT = "cognitiveInputImpairment"
Expand Down
24 changes: 6 additions & 18 deletions netex/models/service_patterns_in_frame_rel_structure.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from dataclasses import dataclass, field
from typing import List, Union
from typing import List

from .containment_aggregation_structure import ContainmentAggregationStructure
from .journey_pattern_view import JourneyPatternView
from .service_pattern import ServicePattern

__NAMESPACE__ = "http://www.netex.org.uk/netex"
Expand All @@ -13,23 +12,12 @@ class ServicePatternsInFrameRelStructure(ContainmentAggregationStructure):
class Meta:
name = "servicePatternsInFrame_RelStructure"

service_pattern_or_journey_pattern_view: List[
Union[ServicePattern, JourneyPatternView]
] = field(
service_pattern: List[ServicePattern] = field(
default_factory=list,
metadata={
"type": "Elements",
"choices": (
{
"name": "ServicePattern",
"type": ServicePattern,
"namespace": "http://www.netex.org.uk/netex",
},
{
"name": "JourneyPatternView",
"type": JourneyPatternView,
"namespace": "http://www.netex.org.uk/netex",
},
),
"name": "ServicePattern",
"type": "Element",
"namespace": "http://www.netex.org.uk/netex",
"min_occurs": 1,
},
)
9 changes: 9 additions & 0 deletions netex/models/site_version_frame_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
)
from .stop_places_in_frame_rel_structure import StopPlacesInFrameRelStructure
from .tariff_zones_in_frame_rel_structure import TariffZonesInFrameRelStructure
from .taxi_ranks_in_frame_rel_structure import TaxiRanksInFrameRelStructure
from .topographic_places_in_frame_rel_structure import (
TopographicPlacesInFrameRelStructure,
)
Expand Down Expand Up @@ -111,6 +112,14 @@ class Meta:
},
)
)
taxi_ranks: Optional[TaxiRanksInFrameRelStructure] = field(
default=None,
metadata={
"name": "taxiRanks",
"type": "Element",
"namespace": "http://www.netex.org.uk/netex",
},
)
points_of_interest: Optional[PointsOfInterestInFrameRelStructure] = field(
default=None,
metadata={
Expand Down
22 changes: 6 additions & 16 deletions netex/models/stop_places_in_frame_rel_structure.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from dataclasses import dataclass, field
from typing import List, Union
from typing import List

from .containment_aggregation_structure import ContainmentAggregationStructure
from .stop_place import StopPlace
from .taxi_rank import TaxiRank

__NAMESPACE__ = "http://www.netex.org.uk/netex"

Expand All @@ -13,21 +12,12 @@ class StopPlacesInFrameRelStructure(ContainmentAggregationStructure):
class Meta:
name = "stopPlacesInFrame_RelStructure"

stop_place: List[Union[TaxiRank, StopPlace]] = field(
stop_place: List[StopPlace] = field(
default_factory=list,
metadata={
"type": "Elements",
"choices": (
{
"name": "TaxiRank",
"type": TaxiRank,
"namespace": "http://www.netex.org.uk/netex",
},
{
"name": "StopPlace",
"type": StopPlace,
"namespace": "http://www.netex.org.uk/netex",
},
),
"name": "StopPlace",
"type": "Element",
"namespace": "http://www.netex.org.uk/netex",
"min_occurs": 1,
},
)
23 changes: 23 additions & 0 deletions netex/models/taxi_ranks_in_frame_rel_structure.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from dataclasses import dataclass, field
from typing import List

from .containment_aggregation_structure import ContainmentAggregationStructure
from .taxi_rank import TaxiRank

__NAMESPACE__ = "http://www.netex.org.uk/netex"


@dataclass
class TaxiRanksInFrameRelStructure(ContainmentAggregationStructure):
class Meta:
name = "taxiRanksInFrame_RelStructure"

taxi_rank: List[TaxiRank] = field(
default_factory=list,
metadata={
"name": "TaxiRank",
"type": "Element",
"namespace": "http://www.netex.org.uk/netex",
"min_occurs": 1,
},
)
Loading

0 comments on commit 655d2aa

Please sign in to comment.