GET api/geofence/create_geofence

Create one geofence

Request Information

URI Parameters

NameDescriptionTypeAdditional information
AccessToken

Token

string

None.

Imei

Imei

string

None.

Name

geofence name

string

None.

AlarmType

1:In,2:out,3:all

string

None.

CreateTime

CreateTime

date

None.

Lat

Lat

decimal number

None.

Lng

Lng

decimal number

None.

Status

1,active,2,inactive

integer

None.

MapType

google

string

None.

Radius

Radius

decimal number

None.

Response Information

Resource Description

Return successful or fail

CreateGeofenceResult
NameDescriptionTypeAdditional information
Code

提示信息

string

None.

Message

string

None.

Result

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Message": "sample string 2",
  "Result": "sample string 3"
}

application/xml, text/xml

Sample:
<CreateGeofenceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.OpenApi.Models.ResponseModels">
  <Code>sample string 1</Code>
  <Message>sample string 2</Message>
  <Result>sample string 3</Result>
</CreateGeofenceResult>