Skip to main content

route

Displays a route in a navigation app. If an address exists, longitude and latitude will be ignored. If there is no address, both parameters: latitude and longitude are needed.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"address"StringThe address to which you want to navigate.null
"latitude"NumberThe latitude to which you want to navigate.null
"longitude"NumberThe longitude to which you want to navigate.null
"title"String(iOS only) Displays the title on the pin of the map.null

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples

Example 1: Create a route action.

Goal: Navigate to the specified point in a navigation app.

To achieve this the following code can be used:

{
"type": "route",
"params": {
"address": "{{addressText}}",
"longitude": 50.5892185,
"latitude": 8.6685362
}
}

In this example we are getting the address from the database in addressText. If the data is empty, the properties longitude and latitude would be used.

Result:

A route action has been created.