Skip to main content

Routes

designInterfaces_routes included in the Core module.

Description​

Implemented by all route designs

Properties​

PropertyValue
NameRoutes
CodedesignInterfaces_routes
TypeDesign interface
ContextCore
Title{{attributes_routesName}}
Subtitle-
Iconicon-route
Colour#25aae1

Implements​

This interface does not implement any interfaces.

Applied to designs/interfaces​

This interface is not added to any designs or interfaces when this module is installed.

Attributes​

This interface directly creates the following attributes.

Name​

Implemented by all route designs

PropertyValue
NameName
Codeattributes_routesName
TypeString
Requiredtrue
Uniquefalse
Readonlyfalse
Options
{
"max": 128
}

Waypoints​

Route waypoints either generated by the routing service or user specified

PropertyValue
NameWaypoints
Codeattributes_routesWaypoints
TypeLink
Requiredtrue
Uniquefalse
Readonlyfalse
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
Readonlyfalse
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
Readonlyfalse
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
Readonlyfalse
Options
{
"max": 128
}

Shortest Route​

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

PropertyValue
NameShortest Route
Codeattributes_routesShortestRoute
TypeGeoJson
Requiredfalse
Uniquefalse
Readonlyfalse
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
Readonlyfalse
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
Readonlyfalse
Options
{
"decimalPlaces": 2
}

Default attribute permissions​

This interface applies the following default permissions to all attributes against each user group.

AllowsNameCode
ReadOnlyProject ViewersuserGroups_projectViewers
ReadWriteProject ManagersuserGroups_projectManagers

Permissions​

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