Skip to content
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

Add sorting options for places #301

Merged
merged 10 commits into from
Jan 19, 2023
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