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
Key | Type | Description | Default Value |
---|---|---|---|
"params" (required) | Object | undefined | null |
Parameters
Key | Type | Description | Default Value |
---|---|---|---|
"address" | String | The address to which you want to navigate. | null |
"latitude" | Number | The latitude to which you want to navigate. | null |
"longitude" | Number | The 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
Key | Type | Description | Default Value |
---|---|---|---|
"dynamicParams" | Object | Dynamic params to retrieve data from a specific context e.g. a userSetting. | null |
"leadingDelimiter" | String | The leading mustache delimiter to use. | null |
"params" | Object,Array | Object containing the properties of the action. | null |
"trailingDelimiter" | String | The trailing mustache delimiter to use. | null |
"type" | String | Type 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.