Location:

Service Management

When using LBS Platform to manage geofencing, you must first create a track service.

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

Parameter Value Type Meaning Required Remarks

ak

your ak

string

Developer Key

Yes

Click to apply

name

string

Service name

Yes

desc

string

No

Run


                        

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

Parameter Value Type Meaning Required Remarks

ak

your ak

string

Developer Key

Yes

Click to apply

service_id

int

The service ID returned when creating the service

Yes

Run


                        

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
If this field is specified and not empty, the service name will be updated.

desc

string

Service description, modifiable

No

If this field is specified but no content is filled in, the service description will be cleared.
If there is no description at the time of creation and this field is specified not to be empty, the service description will be added and stored according to the information filled in by the user.

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

Parameter Value Type Meaning Required Remarks

ak

your ak

string

Developer Key

Yes

Click to apply

service_id

int

The service ID returned when creating the service

Yes

name

string

Service name, modifiable

No

If this field is specified but not filled in, the service name will be cleared.
If this field is specified and not empty, the service name will be updated

desc

string

Service description, modifiable

No

If this field is specified but no content is filled in, the service description will be cleared.
If there is no description at the time of creation and this field is specified not to be empty, the service description will be added and stored according to the information filled in by the user.

Run


                        

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

Parameter Value Type Meaning Required Remarks

ak

your ak

string

Developer Key

Yes

Click to apply

Run


                        
TOP