Skip to main content

Routes

This interface is included in the Core module.

Description​

Implemented by all route designs.

Properties​

This interface has the following properties.

PropertyValue
NameRoutes
CodedesignInterfaces_routes
TypeInterface
ContextCore
AI agent enabledtrue
AI agent descriptionShared interface implemented by all route designs, providing navigation and distance fields.
Iconicon-route
Colour#690095  
Title{{attributes_routesName}}
Subtitle-

Implements​

This interface doesn't implement any other interfaces.

Attributes​

This interface has the following attributes.

Name​

The name identifying this route.

PropertyValue
NameName
Codeattributes_routesName
TypeString
Requiredtrue
Uniquefalse
Read-onlyfalse
AI agent enabledtrue
Options
{
"max": 128
}

Waypoints​

Route waypoints either generated by the routing service or user specified.

PropertyValue
NameWaypoints
Codeattributes_routesWaypoints
TypeLink
Requiredtrue
Uniquefalse
Read-onlyfalse
AI agent enabledtrue
AI agent descriptionLinks to: Ordered collection of waypoints defining the stops on this route.
Links toWaypoints
Options
{
"code": "designInterfaces_waypoints",
"graph": "Route"
}

Distance (m)​

Optional distance traveled by the route, in float meters (returned by the routing service).

PropertyValue
NameDistance (m)
Codeattributes_routesDistance
TypeNumber
Requiredfalse
Uniquefalse
Read-onlyfalse
AI agent enabledtrue
AI agent descriptionThe total distance of this route in metres.
Options
{
"decimalPlaces": 2
}

Duration (s)​

Optional estimated travel time, in float number of seconds (returned by the routing service).

PropertyValue
NameDuration (s)
Codeattributes_routesDuration
TypeNumber
Requiredfalse
Uniquefalse
Read-onlyfalse
AI agent enabledtrue
AI agent descriptionThe estimated travel time for this route in seconds.
Options
{
"decimalPlaces": 2
}

Current Route Type​

The current route representation. Can be either 'Fastest' or 'Shortest'.

PropertyValue
NameCurrent Route Type
Codeattributes_routesCurrentRouteType
TypeString
Requiredfalse
Uniquefalse
Read-onlyfalse
AI agent enabledtrue
AI agent descriptionIndicates whether the route is managed (system-optimised) or manual (user-defined).
Options
{
"max": 128
}

Shortest Route​

Optional trip (shortest route) geometry, as generated by OSRM trip service.

PropertyValue
NameShortest Route
Codeattributes_routesShortestRoute
TypeGeoJson
Requiredfalse
Uniquefalse
Read-onlyfalse
AI agent enabledtrue
AI agent descriptionReference to the shortest alternative route calculated for this journey.
Options
{
"allows": [
"Linestring"
]
}

Shortest Route Distance​

Trip (shortest route) distance traveled in float meters (returned by the routing service).

PropertyValue
NameShortest Route Distance
Codeattributes_routesShortestRouteDistance
TypeNumber
Requiredfalse
Uniquefalse
Read-onlyfalse
AI agent enabledtrue
AI agent descriptionThe distance of the shortest route in metres.
Options
{
"decimalPlaces": 2
}

Shortest Route Duration​

Trip (shortest route) estimated travel time in float number of seconds (returned by the routing service).

PropertyValue
NameShortest Route Duration
Codeattributes_routesShortestRouteDuration
TypeNumber
Requiredfalse
Uniquefalse
Read-onlyfalse
AI agent enabledtrue
AI agent descriptionThe estimated travel time of the shortest route in seconds.
Options
{
"decimalPlaces": 2
}

Standard paths​

This interface doesn't have any standard paths of its own.

Permissions​

This interface defines the following permissions.

User groupAllowed
Project ViewersRead
Project ManagersRead, Create, Edit, Delete

Default attribute permissions​

This interface applies the following default permissions to all attributes for the following user groups.

AllowedUser groupCode
ReadOnlyProject ViewersuserGroups_projectViewers
ReadWriteProject ManagersuserGroups_projectManagers