Thank you. It helped.
@vikas please explain how did you fixed ?
In traccar backend we attached geofences with devices, but in API, it return blank,
Please write your guide / tips so it helpful
@SnippetBucket Technologies I'm not in touch with this stuff now. But I remember, this wasn't an issue. It's basic a functionality. I didn't know much about it at that time, so I asked it here.
So basically, geofenceIds: [ ]
is a list of geofences in which your device currently is.
But /geofences?deviceId=id
gives you list of all the geofences you've created.
So there's a difference. Suppose you've created 3 geofences A, B and C. But you're device is in A, you'll get something like geofenceIds: [A]
And if you use /geofences?deviceId=id
, you'll get A, B and C.
Hope it helps.
I have added a device and linked some geofences to it using permissions api. Now, when I request
/geofences?deviceId=id
I get the device's all geofences that I linked. But when I requestGET /devices api
for same device, I getgeofenceIds: [ ]
i.e., empty array. Why is it so? Is there anything else to do?