Sending location data

Ubidots provides multiple ways to track your IoT devices. This page shows you how to send coordinates to Ubidots, starting with a GPS IoT solution.

Read this guide to learn more about Ubidots Maps features.

curl -X POST 'https://industrial.api.ubidots.com/api/v1.6/devices/my-new-device' 
-H "X-Auth-Token: BBFF-Rfcgaxns6HlVb155WA0RhSY85xNDmB" 
-H "Content-Type: application/json" 
-d '{"location":{"value": 1, "context":{"lat":37.773, "lng":-122.431}}}'
📘

Location data

To send a value that includes location data, refer to this section of the documentation.