location.current Action

This trigger action will acquire the current location of a specific thing.

Action

This trigger action is found under the Location heading.

Canvas

When dragged onto the canvas, the appearance of the action is a rectangle with two routing points.

The left routing point (red) is the failure route. This route will be taken if there is an error during execution.

The right routing point (green) is the success route. This route will be taken if action executes successfully.

Form

Parameters

Name

Type

Required

Description

Thing key

String

Yes

The key of the requested thing.

Action variables

Name

Type

Description

$(action.X.corrId)

String

The correlation identifier associated with the location entry (if set).

$(action.X.lat)

Number

The latitude coordinate associated with the location entry.

$(action.X.lng)

Number

The longitude coordinate associated with the location entry.

$(action.X.fixAcc)

Number

The fix accuracy of the location data (if set).

$(action.X.fixType)

String

The fix type of the location data (if set).

$(action.X.heading)

Number

The heading associated with the location entry (if set).

$(action.X.altitude)

Number

The altitude associated with the location entry (if set).

$(action.X.speed)

Number

The speed associated with the location entry (if set).

$(action.X.addr.streetNumber)

String

The street number of the address.

$(action.X.addr.street)

String

The route of the address.

$(action.X.addr.city)

String

The city name of the address.

$(action.X.addr.state)

String

The state code of the address.

$(action.X.addr.zipCode)

String

The zip code of the address.

$(action.X.addr.country)

String

The country code of the address.