capture-coordinates (legacy docs)

These capture-coordinates docs are out of date

New functionality and features were added to capture-coordinates in version 4.82.0 of the JourneyApps Runtime. Please refer to the latest docs here.

"Foreground" Capturing

The following example shows how GPS location capturing can be performed in the "foreground" i.e. the user sees a map showing how their GPS location is captured.

<var name="location" type="location" />

<capture-coordinates bind="location" label="GPS Location" />

"Background" Capturing

Using the show-if configuration option, it is also possible to capture a GPS location in the background (i.e. the map pictured in the screenshot above is not shown)

<var name="location" type="location" />

<capture-coordinates bind="location" label="GPS Location" show-if="false" />

Configuration

Accessing Coordinates, Accuracy, etc. from JavaScript/TypeScript

JourneyApps supports accessing GPS latitude, longitude and accuracy information in the location field or variable that you're storing the captured GPS location. Refer to the GPS Capturing section for more information."Foreground" Capturing

The following example shows how GPS location capturing can be performed in the "foreground" i.e. the user sees a map showing how their GPS location is captured.

<var name="location" type="location" />

<capture-coordinates bind="location" label="GPS Location" />

"Background" Capturing

Using the show-if configuration option, it is also possible to capture a GPS location in the background (i.e. the map pictured in the screenshot above is not shown)

<var name="location" type="location" />

<capture-coordinates bind="location" label="GPS Location" show-if="false" />

Configuration

Accessing Coordinates, Accuracy, etc. from JavaScript/TypeScript

JourneyApps supports accessing GPS latitude, longitude and accuracy information in the location field or variable that you're storing the captured GPS location. Refer to the GPS Capturing section for more information.

Last updated