POST api/location/get_location_info

Get current location

Request Information

Body Parameters

GetLocationInfoModels
NameDescriptionTypeAdditional information
AccessToken

Token

string

None.

Imei

Imei

string

None.

MapType

Google

string

None.

Response Information

Resource Description

return current location of the device

LocationInfoResult
NameDescriptionTypeAdditional information
Result

LocationInfoOutputDto

None.

Code

Status Code

integer

None.

Message

Error Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": {
    "Imei": "sample string 1",
    "Imsi": "sample string 2",
    "Model": "sample string 3",
    "ActivateDate": "sample string 4",
    "ExpireDate": "sample string 5",
    "GpsTime": "sample string 6",
    "SignalTime": "sample string 7",
    "Lat": 8.1,
    "Lng": 9.1,
    "Status": 10,
    "PosType": "sample string 11",
    "Speed": 12.1,
    "Battery": 13.1
  },
  "Code": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<LocationInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.OpenApi.Models.ResponseModels">
  <Code>1</Code>
  <Message>sample string 2</Message>
  <Result>
    <ActivateDate>sample string 4</ActivateDate>
    <Battery>13.1</Battery>
    <ExpireDate>sample string 5</ExpireDate>
    <GpsTime>sample string 6</GpsTime>
    <Imei>sample string 1</Imei>
    <Imsi>sample string 2</Imsi>
    <Lat>8.1</Lat>
    <Lng>9.1</Lng>
    <Model>sample string 3</Model>
    <PosType>sample string 11</PosType>
    <SignalTime>sample string 7</SignalTime>
    <Speed>12.1</Speed>
    <Status>10</Status>
  </Result>
</LocationInfoResult>