Get User Loc
The below API is used to get User Location.
Request: GET
Signature: /api/mobile/GetUserLoc?Token={Login_Token}&UserID={User_ID}&SkipCount={Skip_count}
Sample: /api/mobile/GetUserLoc?Token=P7pT6gzvdPWzxvmYCQ==&UserID=11&SkipCount=0
Response:
{
"Code": 1,
"Info": "",
"RowsAffected": 1,
"Scalar": null,
"Identity": 0,
"RetInfo": [
{
"Latitude": 28.57425,
"Longitude": 77.353883333333329,
"LocTime": "13:34, 24 Apr 2019",
"Speed": 0,
"Direction": 0,
"Batt": 59
}
]
}
Things to know about this API:
- Token - You can use Login API to get token displayed under Info
- UserID - You can use Get User List API to get UserID
- SkipCount (It is an integer which decides the number of rows returned. For example: If you send 0, then it will display 0 to 20 rows. If you send 13, then it will display 13 to 33 rows.)
- Definition of each attribute for RetInfo: