OSID Logo
OSID Specifications
mapping route package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.route.RouteSegmentSearchOrder
Implementsosid.OsidObjectSearchOrder
Description

An interface for specifying the ordering of search results.

MethodorderByStartingInstructions
Description

Specifies a preference for oredering the results by starting instructions.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodorderByEndingInstructions
Description

Specifies a preference for oredering the results by ending instructions.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodorderByDistance
Description

Specifies a preference for oredering the results by distance.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodorderByETA
Description

Specifies a preference for oredering the results by estimated travel time.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodorderByRoute
Description

Specifies a preference for oredering the results by path.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodsupportsRouteSearchOrder
Description

Tests if a search order for the route is available.

Returnboolean true if a route search order is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRouteSearchOrder
Description

Gets a route search order.

Returnosid.mapping.route.RouteSearchOrderthe path search order
ErrorsUNIMPLEMENTED supportsRouteSearchOrder() is false
ComplianceoptionalThis method must be implemented if supportsRouteSearchOrder() is true.
MethodorderByPath
Description

Specifies a preference for oredering the results by path.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodsupportsPathSearchOrder
Description

Tests if a search order for the path is available.

Returnboolean true if a path search order is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPathSearchOrder
Description

Gets a path search order.

Returnosid.mapping.path.PathSearchOrderthe path search order
ErrorsUNIMPLEMENTED supportsPathSearchOrder() is false
ComplianceoptionalThis method must be implemented if supportsPathSearchOrder() is true.
MethodgetRouteSegmentSearchOrderRecord
Description

Gets the route segment search order record corresponding to the given route segment Type. Multiple retrievals return the same underlying object.

Parametersosid.type.TyperouteSegmentRecordTypea route segment record type
Returnosid.mapping.route.records.RouteSegmentSearchOrderRecordthe route segment search order record
ErrorsNULL_ARGUMENT routeSegmentRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(routeSegmentRecordType) is false
CompliancemandatoryThis method must be implemented.