POST api/GuarderPosition/UploadGuarderPosition

The guardian to upload location information [watch]
Share after position.Can upload their own position regularly

Request Information

Body Parameters

UploadGuarderPositionModel
NameDescriptionTypeAdditional information
UserId

Guardian user id

integer

None.

Lat

latitude

decimal number

None.

Lng

longitude

decimal number

None.

IsInChina

Whether domestic

boolean

None.

MapType

map style

string

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "Lat": 2.0,
  "Lng": 3.0,
  "IsInChina": true,
  "MapType": "sample string 5",
  "Token": "sample string 6",
  "Language": "sample string 7",
  "AppId": "sample string 8"
}

application/xml, text/xml

Sample:
<UploadGuarderPositionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 8</AppId>
  <Language>sample string 7</Language>
  <Token>sample string 6</Token>
  <IsInChina>true</IsInChina>
  <Lat>2</Lat>
  <Lng>3</Lng>
  <MapType>sample string 5</MapType>
  <UserId>1</UserId>
</UploadGuarderPositionModel>

Response Information

Resource Description

Statestatus code:
0. Indicates success

BaseResult
NameDescriptionTypeAdditional information
State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "State": 1
}

application/xml, text/xml

Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
</BaseResult>