-
Notifications
You must be signed in to change notification settings - Fork 50
Add DynamicDistanceMatrixElement #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
skinkie
merged 2 commits into
TransmodelEcosystem:next
from
entur:dynamic_distance_matrix_element
Apr 14, 2022
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 | ||||
|---|---|---|---|---|---|---|
| @@ -1,5 +1,7 @@ | ||||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <xsd:schema xmlns="http://www.netex.org.uk/netex" xmlns:netex="http://www.netex.org.uk/netex" xmlns:siri="http://www.siri.org.uk/siri" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2" targetNamespace="http://www.netex.org.uk/netex" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.10" id="netex_distanceMatrixElement_version"> | ||||||
| <xsd:schema xmlns="http://www.netex.org.uk/netex" xmlns:netex="http://www.netex.org.uk/netex" xmlns:siri="http://www.siri.org.uk/siri" xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||||||
| xmlns:gml="http://www.opengis.net/gml/3.2" targetNamespace="http://www.netex.org.uk/netex" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.10" | ||||||
| id="netex_distanceMatrixElement_version"> | ||||||
| <xsd:include schemaLocation="netex_fareSeries_version.xsd"/> | ||||||
| <xsd:include schemaLocation="netex_fareTable_version.xsd"/> | ||||||
| <xsd:include schemaLocation="netex_geographicStructureFactor_version.xsd"/> | ||||||
|
|
@@ -31,7 +33,10 @@ | |||||
| </Date> | ||||||
| <Date> | ||||||
| <Modified>2019-03-25</Modified>Fix #40 by Skinkie from 2019.01.07 . Fix typo on DistanceMatrixElement.IsDirect. | ||||||
| NB this will break existing XML that uses IsDirect. | ||||||
| NB this will break existing XML that uses IsDirect. | ||||||
| </Date> | ||||||
| <Date> | ||||||
| <Modified>2021-02-05</Modified>Add DynamicDistanceMatrixElement for on-the-fly creation when pre-computing all possible combinations is not feasible | ||||||
| </Date> | ||||||
| <Description> | ||||||
| <p>NeTEx is a European CEN standard for the exchange of Public Transport data including timetables.</p> | ||||||
|
|
@@ -225,7 +230,14 @@ Rail transport, Roads and Road transport | |||||
| </xsd:extension> | ||||||
| </xsd:complexContent> | ||||||
| </xsd:complexType> | ||||||
| <xsd:element name="DistanceMatrixElement" abstract="false" substitutionGroup="PriceableObject"> | ||||||
|
|
||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| <xsd:element name="DistanceMatrixElement_" type="PriceableObject_VersionStructure" abstract="true" substitutionGroup="PriceableObject"> | ||||||
| <xsd:annotation> | ||||||
| <xsd:documentation>Dummy SERVICE JOURNEY Supertype.</xsd:documentation> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| </xsd:annotation> | ||||||
| </xsd:element> | ||||||
| <xsd:element name="DistanceMatrixElement" abstract="false" substitutionGroup="DistanceMatrixElement_"> | ||||||
| <xsd:annotation> | ||||||
| <xsd:documentation>A cell of an origin-destination matrix for TARIFF ZONEs or STOP POINTs, expressing a fare distance for the corresponding trip: value in km, number of fare units etc.</xsd:documentation> | ||||||
| </xsd:annotation> | ||||||
|
|
@@ -479,6 +491,43 @@ Rail transport, Roads and Road transport | |||||
| </xsd:choice> | ||||||
| </xsd:group> | ||||||
| <!-- ======================================================================= --> | ||||||
| <!-- === DYNAMIC DISTANCE MATRIX ELEMENT ================================================= --> | ||||||
| <xsd:element name="DynamicDistanceMatrixElement" abstract="false" substitutionGroup="DistanceMatrixElement_"> | ||||||
| <xsd:annotation> | ||||||
| <xsd:documentation>A dynamic free-standing distance matrix element. Used when a pre-computed distance matrix element is not feasible.</xsd:documentation> | ||||||
| </xsd:annotation> | ||||||
| <xsd:complexType> | ||||||
| <xsd:complexContent> | ||||||
| <xsd:restriction base="DynamicDistanceMatrixElement_VersionStructure"> | ||||||
| <xsd:sequence> | ||||||
| <xsd:sequence> | ||||||
| <xsd:group ref="EntityInVersionGroup" minOccurs="0"/> | ||||||
| </xsd:sequence> | ||||||
| <xsd:sequence> | ||||||
| <xsd:group ref="DataManagedObjectGroup"/> | ||||||
| </xsd:sequence> | ||||||
| <xsd:sequence> | ||||||
| <xsd:group ref="PriceableObjectGroup"/> | ||||||
| </xsd:sequence> | ||||||
| <xsd:sequence> | ||||||
| <xsd:group ref="DistanceMatrixElementGroup"/> | ||||||
| </xsd:sequence> | ||||||
| </xsd:sequence> | ||||||
| <xsd:attribute name="id" type="DynamicDistanceMatrixElementIdType"/> | ||||||
| </xsd:restriction> | ||||||
| </xsd:complexContent> | ||||||
| </xsd:complexType> | ||||||
| </xsd:element> | ||||||
| <xsd:complexType name="DynamicDistanceMatrixElement_VersionStructure"> | ||||||
| <xsd:annotation> | ||||||
| <xsd:documentation>Type for DYNAMIC DISTANCE MATRIX ELEMENT.</xsd:documentation> | ||||||
| </xsd:annotation> | ||||||
| <xsd:complexContent> | ||||||
| <xsd:extension base="DistanceMatrixElement_VersionStructure"> | ||||||
| </xsd:extension> | ||||||
| </xsd:complexContent> | ||||||
| </xsd:complexType> | ||||||
|
|
||||||
| <!-- == DISTANCE MATRIX ELEMENT View--> | ||||||
| <xsd:element name="DistanceMatrixElementView" type="DistanceMatrixElement_DerivedViewStructure" abstract="false" substitutionGroup="DerivedView"> | ||||||
| <xsd:annotation> | ||||||
|
|
||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since both choices are in the same substitution group, I'm not sure the use of choice is really effective... but it does not harm anyway