LBS settings
The maximum radius accepted for a tracker's cell-tower and Wi-Fi positions.
LBS, or location-based service, positions a device from cell towers and Wi-Fi access points instead of from GNSS such as GPS, GLONASS, Galileo, or BeiDou. It works where satellites do not, indoors or in dense cities, but its points carry far more uncertainty than a satellite fix.
That uncertainty is what these operations control. The setting is the maximum radius accepted for this tracker's LBS points, and it backs the LBS detection radius setting on the device's settings tab in the interface.
API actions
API base path: /tracker/settings/lbs.
Get the maximum radius accepted for LBS points on this tracker. LBS positions a device from cell towers or Wi-Fi access points rather than from GNSS, so its points carry a much larger uncertainty than a GPS fix. Available to demo accounts.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
ID of the tracker, also known as the object ID. Must belong to the current account and not be blocked.
123456The LBS radius limit
true if request finished successfully.
trueMaximum accepted radius for LBS points, in metres.
300Bad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error 204: no tracker with this ID belongs to the account. Error 208: the tracker exists but is blocked, normally because its tariff ended.
Error response object
POST /v2/tracker/settings/lbs/read HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"tracker_id": 123456
}{
"success": true,
"max_radius": 300
}Errors
These errors come in addition to the general error codes:
204 - No tracker with this ID belongs to the account.
208 - The tracker exists but is blocked, normally because its tariff ended.
Required sub-user rights: tracker_update.
Change the maximum radius accepted for LBS points. Points reported with a larger radius than this are discarded, so raising it admits vaguer positions and lowering it discards more of them.
Requires the tracker_update right.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
ID of the tracker, also known as the object ID. Must belong to the current account and not be blocked.
123456Maximum accepted radius for LBS points, in metres.
1000The limit was changed
true if request finished successfully.
trueBad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error 204: no tracker with this ID belongs to the account. Error 208: the tracker exists but is blocked, normally because its tariff ended.
Error response object
POST /v2/tracker/settings/lbs/update HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 39
{
"tracker_id": 123456,
"max_radius": 1000
}{
"success": true
}Errors
These errors come in addition to the general error codes:
204 - No tracker with this ID belongs to the account.
208 - The tracker exists but is blocked, normally because its tariff ended.
Last updated
Was this helpful?