Relation is one to many. Device table has a reference to the latest position.
API also returns that reference.
Let me check if I got it it correctly. Each time the device sends its coordinates to the server, is a new entry added to the positions table?
Yes, of course.
I want to get the current updated positions of a device while moving. How to get that, which API returns the device details ????
Positions API returns current locations for all devices if you request it without parameters. There is no way to do it for a single device.
Then, we can not track a single device location and the updated routes. Can we get it in future for android. It will be very helpful.
For feature requests use GitHub.
Hello!
There is a clear relation between Devices and Positions in the database schema. Is this relation 1:N? If yes, taking in account that a device can have many positions, how can I get the current one through the API?