Skip to main content

location

Latest Versionv1.0.0
Input Content Typeapplication/json

The location destination sends data to Golioth Location. Data must arrive as or be transformed into a JSON object with the following fields to be successfully delivered.

AttributeDescription
latitudeFloat indicating latitude of device.
longitudeFloat indicating longitude of device.
accuracyInteger horizontal positioning accuracy (HPE). (meters)

In some cases horizontal positioning error (HPE) is unknown or irrelevant and may be omitted.

Example Usage

Because Golioth Location is hosted by Golioth, no credentials are required to deliver data to the service.

    destination:
type: location
version: v1

Example Input

{
"latitude": 50.664189000,
"longitude": 17.942112000,
"accuracy": 65
}

Example Output

Devices that deliver data to the location destination can be displayed on a map in the Golioth console.

{
"latitude": 50.664189000,
"longitude": 17.942112000,
"accuracy": 65
}