Skip to main content

Displaying Locations on a Map with TTN LoRaWAN

If you have a custom payload format decoder at TTN (The Things Network), you can send your payload variables directly to TagoIO.

To display locations on a Map, your data needs to be sent inside a "location" field with the format shown below:

{
"variable": "speed",
"value": 10,
"location": {
"lat": 42.2974279,
"lng": -85.628292
}
}

TagoIO converts latitude and longitude fields to the specific format required, so you don't need to perform any conversions. To accomplish this, you only need to have the variables named latitude and longitude or lat and lng. TagoIO will automatically read these variables and create a new variable called location.

After your device is sending latitude and longitude information to TagoIO:

  • Create a dashboard.
  • Add a Map widget.
  • Look for the device and add the variable location inside the Map widget.