GPS location
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

GPS location

  • Dark
    Light
  • PDF

Get a single location from the device GPS sensor. By default, updates sensorVars.geolocation.latestValue and sensorVars.geolocation.values.

Input arguments

Label Key Type Required? Default Description
Update sensor variables updateSensorVars Boolean Yes true If true, the new value will also be stored into sensorVars.geolocation.latestValue and sensorVars.geolocation.values.
High accuracy mode enableHighAccuracy Boolean Yes true If true, a GPS position will be requested. If set to false, a WIFI location will be requested.

Output arguments

Number of outputs: 2

Label Key Type Description
GPS position value Object GPS position of the device when the flow function was called.
  • Latitude
value.latitude Number Latitude of the device, in decimal degrees.
  • Longitude
value.longitude Number Longitude of the device, in decimal degrees.
  • Altitude
value.altitude Number Altitude of the device, in meters, relative to sea level. If the device does not provide this information, this value will be `null`.
  • Accuracy
value.accuracy Number Accuracy of the `latitude` and `longitude` parameters, in meters.
  • Altitude accuracy
value.altitudeAccuracy Number Accuracy of the `altitude` parameter, in meters.
  • Heading
value.heading Number The direction in which the device is traveling, given as degrees from true north. 0 degrees represents true north, and the direction is determined clockwise (which means that east is 90 degrees and west is 270 degrees).
  • Speed
value.speed Number Velocity of the device, in meters per second.
  • timestamp
value.timestamp String ISO 8601 timestamp of when the value was read.

Events

No events.

Errors

Label Code Description
Unknown error unknown Thrown when calling the native API resulted in an unknown error.

Was this article helpful?