What is the relation between Devices and Positions?

Pedro Vinícius 8 years ago

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 Tananaev 8 years ago

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

Anton Tananaev 8 years ago

API also returns that reference.

Pedro Vinícius 8 years ago

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 Tananaev 8 years ago

Yes, of course.

Rakesh 8 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 Tananaev 8 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.

Rakesh 8 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 Tananaev 8 years ago

For feature requests use GitHub.