Get Asset Loc
The below API is used to get Asset Location.
Request: GET
Signature: /api/mobile/GetAsseLoc?Token={Login_Token}&AssetID={Asset_ID}&SkipCount={Skip_count}
Sample: /api/mobile/GetAssetLoc?Token=P7pT6gzvdPWzxvmYCQ==&AssetID=11&SkipCount=0
Response:
{
"Code": 1,
"Info": "",
"RowsAffected": 5,
"Scalar": null,
"Identity": 0,
"RetInfo": [
{
"Address": "Panipat Taraf Ansar, Haryana, India",
"Latitude": 1764.319,
"Longitude": 4617.343,
"LocTime": "2019-05-21T07:46:24.713",
"Speed": null,
"Direction": null
},
{
"Address": "Panipat, Haryana, India",
"Latitude": 1763.457,
"Longitude": 4617.81,
"LocTime": "2019-05-21T07:44:40.68",
"Speed": null,
"Direction": null
},
{
"Address": "Kairana, Uttar Pradesh, India",
"Latitude": 1763.639,
"Longitude": 4632.016,
"LocTime": "2019-05-15T12:49:57.003",
"Speed": null,
"Direction": null
},
{
"Address": "Saharanpur, Uttar Pradesh, India",
"Latitude": 1798.08,
"Longitude": 4653.312,
"LocTime": "2019-05-15T12:14:14.413",
"Speed": null,
"Direction": null
},
{
"Address": "Nakur, Uttar Pradesh, India",
"Latitude": 1795.192,
"Longitude": 4638.396,
"LocTime": "2019-05-01T06:30:10.727",
"Speed": null,
"Direction": null
}
]
}
Things to know about this API:
- Token - You can use Login API to get token displayed under Info
- AssetID - You can use Get Asset List API to get AssetID
- 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: