Service Management
Create Service
Service Introduction
You can add a service under the corresponding AK through this request. After the service is added successfully, the ID of the service will be returned. A maximum of 15 services can be registered under each key.
Interface address
https://lbs.navinfo.com/open-api/geofence/v1/track/service/add
Request method
GET/POST
The post request parameters should be transmitted in x-www-form-urlencoded mode
Request parameters
See the following table for the description of creating a service:
Parameter | Type | Meaning | Required | Default | Remarks |
---|---|---|---|---|---|
ak |
string |
Developer Key |
Yes |
||
name |
string |
Service name, The name under the same key cannot be duplicate or empty. |
Yes |
Naming rules: only Chinese, English large and small letters, English underscore "_" English horizontal line "-" and number cannot be "" At the beginning, the maximum length must not exceed 128 characters. |
|
desc |
string |
The text description of this service is convenient for users to remember the service. |
No |
Only support Chinese, English large and small letters, English underscore "" English horizontal line "-" and number cannot be "" At the beginning, the maximum length must not exceed 128 characters. |
Response data
Return Value | Type | Meaning | Remarks | |
---|---|---|---|---|
code |
int |
Return status |
||
message |
string |
Back to status description |
||
data |
object |
result |
||
service_id |
int |
Unique ID of the service |
||
name |
string |
Service name |
Service example
Delete Service
Service Introduction
You can delete the existing service under the corresponding AK through this request.
Interface address
https://lbs.navinfo.com/open-api/geofence/v1/track/service/delete
Request method
GET/POST
The post request parameters should be transmitted in x-www-form-urlencoded mode
Request parameters
Please refer to the following table for the description of deleting the service:
Parameter | Type | Meaning | Required | Default | Remarks |
---|---|---|---|---|---|
ak |
string |
Developer Key |
Yes |
||
service_id |
int |
The service ID returned when creating the service |
Yes |
Response data
Return Value | Type | Meaning | Remarks |
---|---|---|---|
code |
int |
Return status |
|
message |
string |
Back to status description |
Service example
Update Service
Service Introduction
You can modify the service information under the corresponding AK through this request.
Interface address
https://lbs.navinfo.com/open-api/geofence/v1/track/service/update
Request method
GET/POST
The post request parameters should be transmitted in x-www-form-urlencoded mode
Request parameters
Please refer to the following table for update the service description:
Parameter | Type | Meaning | Required | Default | Remarks |
---|---|---|---|---|---|
ak |
string |
Developer Key |
Yes |
||
service_id |
int |
The service ID returned when creating the service |
Yes |
Note: it cannot be modified. This parameter is used to find a service |
|
name |
string |
Service name, modifiable |
No |
If this field is specified but not filled in, the service name will be cleared |
|
desc |
string |
Service description, modifiable |
No |
If this field is specified but no content is filled in, the service description will be cleared. |
Response data
Return Value | Type | Meaning | Remarks | |
---|---|---|---|---|
code |
int |
Return status |
||
message |
string |
Back to status description |
||
data |
object |
result |
||
service_id |
int |
Unique ID of the service |
||
name |
string |
Service name |
Modified service name |
|
desc |
string |
Service description |
Modified service description |
Service example
Query Service
Service Introduction
Through this request, you can query the services under the corresponding AK. There are up to 15 services under each AK without paging.
Interface address
https://lbs.navinfo.com/open-api/geofence/v1/track/service/query
Request method
GET/POST
The post request parameters should be transmitted in x-www-form-urlencoded mode
Request parameters
Please refer to the following table for query service description:
Parameter | Type | Meaning | Required | Default | Remarks |
---|---|---|---|---|---|
ak |
string |
Developer Key |
Yes |
Response data
Return Value | Type | Meaning | Remarks | |
---|---|---|---|---|
code |
int |
Return status |
||
message |
string |
Back to status description |
||
data |
object |
result |
||
service_id |
int |
Unique ID of the service |
||
name |
string |
Service name |
Service name before modification |
|
desc |
string |
Service description |
Service description before modification |
Service example