Ubidots provides multiple ways to start tracking your IoT devices. Here, we’re going to show you how to send coordinates to Ubidots, starting with a GPS IoT Solution.
Check out 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
If you wish to send a value including its location data, please refer to this section of the documentation