OSID Logo
OSID Specifications
mapping route package
Version 3.1.0
Interfaceosid.mapping.route.Route
Implementsosid.OsidRelationship
osid.Aggregateable
Used Byosid.mapping.route.MyRouteSession
osid.mapping.route.RouteAdminSession
osid.mapping.route.RouteList
osid.mapping.route.RouteLookupSession
osid.mapping.route.RouteProgress
osid.mapping.route.RoutingSession
Description

A Route represents one or more paths between two locations. A Route is created from a series of RouteSegments which, in turn, may relate to a Path. A Path is an object representation of a fixed means of travel between two locations, such as a road.

MethodgetStartingLocationId
Description

Gets the Id of the starting location of this route.

Returnosid.id.Id the starting location Id
Compliancemandatory This method must be implemented.
MethodgetStartingLocation
Description

Gets the starting location of this route.

Returnosid.mapping.Location the starting location
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetEndingLocationId
Description

Gets the Id of the ending location of this route.

Returnosid.id.Id the ending location Id
Compliancemandatory This method must be implemented.
MethodgetEndingLocation
Description

Gets the ending location of this route.

Returnosid.mapping.Location the ending location
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetDistance
Description

Gets the total distance of this route.

Returnosid.mapping.Distance the total route distance
Compliancemandatory This method must be implemented.
MethodgetETA
Description

Gets the estimated travel time across the entire route.

Returnosid.calendaring.Duration the estimated travel time
Compliancemandatory This method must be implemented.
MethodgetSegmentIds
Description

Gets the route segment Ids of this route.

Returnosid.id.IdList the segment Ids of this route
Compliancemandatory This method must be implemented.
MethodgetSegments
Description

Gets the segments of this route.

Returnosid.mapping.route.RouteSegmentList the segments of this route
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetRouteRecord
Description

Gets the route record corresponding to the given Route record Type.This method is used to retrieve an object implementing the requested record. The pathRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(routeRecordType) is true.

Parametersosid.type.TyperouteRecordType the type of route record to retrieve
Returnosid.mapping.route.records.RouteRecord the route record
ErrorsNULL_ARGUMENT routeRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(routeRecordType) is false
Compliancemandatory This method must be implemented.