What is the relation between Devices and Positions?

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?

Anton Tananaev7 years ago

Relation is one to many. Device table has a reference to the latest position.

Anton Tananaev7 years ago

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?

Anton Tananaev7 years ago

Yes, of course.

Rakesh7 years ago

I want to get the current updated positions of a device while moving. How to get that, which API returns the device details ????

Anton Tananaev7 years ago

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.

Rakesh7 years ago

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.

Anton Tananaev7 years ago

For feature requests use GitHub.