positionId always return 0

Primtek7 years ago

Hello,

I am using OSMAnd, I am trying to get positionId of a device using http://gps.mydomain.com:8082/api/devices/?uniqueId=e3ab375fc3bf4b51_ANGGI04 but it always return 0?

[{"id":6,"attributes":null,"groupId":6,"name":"ANGGI BACHTIAR - ANGGI04","uniqueId":"e3ab375fc3bf4b51_ANGGI04","status":"online","lastUpdate":"2018-04-25T00:37:30.402+0000","positionId":0,"geofenceIds":[],"phone":"","model":"","contact":"","category":"Car","disabled":false}]

I checked in positions table and there are some records there..
what I missed?

Anton Tananaev7 years ago

It means that for whatever reason the last position hasn't been updated.

Pablo Andrade2 years ago

any solution? I have the same problem. It only happens with some devices, in the route report it does have positions.