Skip to content

Commit

Permalink
added PlaceSortingGroup to PlaceParamStructure (#281)
Browse files Browse the repository at this point in the history
* added PlaceSortingGroup to PlaceParamStructure
* Update OJP/OJP_Places.xsd
* problem message for unsupported sorting method

Co-authored-by: Matthias Günter <[email protected]>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Stephan Großberndt <[email protected]>
Co-authored-by: Stefan de Konink <[email protected]>
Co-authored-by: Malte Herlitze <[email protected]>
  • Loading branch information
5 people authored Jan 19, 2023
1 parent 0e21b03 commit 079b6c7
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 9 deletions.
5 changes: 5 additions & 0 deletions OJP/OJP_PlaceSupport.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@
<xs:documentation>The service does not support any restrictions by localities.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="LOCATION_UNSUPPORTEDSORTINGMETHOD">
<xs:annotation>
<xs:documentation>The service does not support the sorting method. The details should provide a list of the allowed methods the service supports.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="LOCATION_OTHER">
<xs:annotation>
<xs:documentation>A problem has occurred that does not have a specific problem type.</xs:documentation>
Expand Down
20 changes: 20 additions & 0 deletions OJP/OJP_Places.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<xs:sequence>
<xs:group ref="PlaceDataFilterGroup"/>
<xs:group ref="PlacePolicyGroup"/>
<xs:group ref="PlaceSortingGroup"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="GeoRestrictionsStructure">
Expand Down Expand Up @@ -206,6 +207,25 @@
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="PlaceSortingGroup">
<xs:sequence>
<xs:element name="SortingMethod" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>If there are multiple sorting methods supported by the system, the client can choose one of the existing. Which methods are available needs to be known to the client and may differ from system to system. Therefore use with care.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="GeoPosition" type="siri:LocationStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>WGS84 coordinates position. Locations closer to this GeoPosition are preferred.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="MinimalProbability" type="xs:float" minOccurs="0">
<xs:annotation>
<xs:documentation>Ignore locations with a lower probability.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:group>
<xs:simpleType name="PlaceTypeEnumeration">
<xs:restriction base="xs:string">
<xs:enumeration value="stop">
Expand Down
Loading

0 comments on commit 079b6c7

Please sign in to comment.