Reading the api reference for card-location-mode. I see there’s a “threshold” value that defaults to 0.
Does this mean that the GPS polling will take place regardless, as 0 number of motion events presumably is the default if the device hasn’t moved, and therefore to enable this feature that setting needs to be greater than 0?
It’s slightly confusing as there’s no mention of that on this page:
However that page implies that the default is the gps polling won’t trigger unless there’s a movement event.
This is a case in our API where 0 and 1 are functionally the same. 0 means threshold is ignored, while 1 means it would take one motion event to trigger a GPS sync (which is effectively what 0 is saying!). So yes this usage of this argument makes more sense when your threshold is set to a higher value.
FYI any argument in an API’s request or response that is not currently documented is also something that we don’t technically support because it may change in a future firmware update. That being said, count is the number of consecutive GPS failures experienced by card.location.