Get Location-wise Vehicle List
- This is a POST method, using Get Location-wise Vehicle List.
Use Case
- Use to query to Get Location-wise Vehicle List
Use an HTTP POST request to Get Location-wise Vehicle List :
[POST] https://secure.autoguardtracking.com/WebApi/api/v2.0/GetLocationWiseVehicleList
Request Header
The request header should contain the API Token obtained from the authentication process. Get Access Token.
Header Name | Description |
---|---|
Authorization | API Token obtained from the 1st step's authentication process. |
Request Parameters
The Request should contain the following parameters:
Parameter Name | Description | Value Format | Example |
---|---|---|---|
Point Name | Name of specefic point. | string | "BATB Dhaka Factory" |
Radius | Radius in meter | numeric | 100 |
Create Get Location-wise Vehicle List Object
Below is the Get Location-wise Vehicle List POST request examples:
var client = new HttpClient();
var values = new Dictionary
{
{ "PointName", ""BATB Dhaka Factory" " },
{ "Radius", "100 " },
};
client.DefaultRequestHeaders.Add("Authorization","Bearer YOUR_API_TOKEN")
var content = new FormUrlEncodedContent(values);
var response = await client.PostAsync("https://secure.autoguardtracking.com/WebApi/api/v2.0/GetLocationWiseVehicleList", content);
var responseString = await response.Content.ReadAsStringAsync();
//responseString will contain a Credential Object in JSON format
$.ajax({
beforeSend: function(xhrObj){
xhrObj.setRequestHeader("Authorization","Bearer YOUR_API_TOKEN");
},
type: "POST",
url: "https://secure.autoguardtracking.com/WebApi/api/v2.0/GetLocationWiseVehicleList",
dataType: "json",
data:{
PointName : "BATB Dhaka Factory" ,
Radius: "100",
},
success: function(data){
//data object will contain the result as a JSON object
}
});
Sample GetLocationWiseVehicleList Object
$.ajax({
beforeSend: function(xhrObj){
xhrObj.setRequestHeader("Authorization","Bearer YOUR_API_TOKEN");
},
type: "POST",
url: "https://secure.autoguardtracking.com/WebApi/api/v2.0/GetLocationWiseVehicleList",
dataType: "json",
data:{
PointName : "BATB Dhaka Factory" ,
Radius: "100",
},
success: function(data){
//data object will contain the result as a JSON object
}
});
A successful request will return the following JSON result:
{
"StatusCode": "200",
"Message": "OK",
"Data":[
{
"VehicleId": 5835,
"VehicleName": "24/7--CalAmp-RACO-SIM-641",
"TimeZone": "CST",
"VehicleStatusCode": "83",
"VehicleStatus": "Key Off (IS)",
"IntelliStatus": "IS",
"StatusTime": "03/14/2016 10:52:51",
"Lat": 41.49297,
"Lon": -87.92036,
"MoveTime": "03/14/2016 10:52:51",
"Address1": "Address Not Resolved",
"City": "",
"Division": "",
"Zip": "",
"KMDrivenToday": ""
"DistanceFromPoint": ""
},
{
"VehicleId": 7920,
"VehicleName": "Samar-3843-T",
"TimeZone": "CST",
"VehicleStatusCode": "83",
"VehicleStatus": "Key Off (IS)",
"IntelliStatus": "IS",
"StatusTime": "07/22/2018 14:29:45",
"Lat": 41.89565,
"Lon": -87.80007,
"MoveTime": "07/22/2018 14:31:34",
"Address1": "532 Forest Avenue",
"City": "Oak Park",
"Division": "IL",
"Zip": "60302",
"KMDrivenToday": "27"
"DistanceFromPoint": "50.44 Meter"
},
{
"VehicleId": 8601,
"VehicleName": ".129--24/7-1x-KORE-CDMA--129DELPHIlistener",
"TimeZone": "CST",
"VehicleStatusCode": "08",
"VehicleStatus": "Arrive (New Test)",
"IntelliStatus": "I-2364286",
"StatusTime": "03/09/2017 10:20:31",
"Lat": 37.35865,
"Lon": -79.23948,
"MoveTime": "07/23/2018 07:06:58",
"Address1": "630 Wyndhurst Drive",
"City": "Lynchburg",
"Division": "VA",
"Zip": "24502",
"KMDrivenToday": "27"
"DistanceFromPoint": "203.44 Meter"
},
.............
.............
.............
]
}
Test
Test the GetLocationWiseVehicleList using your AccessToken by entering it below:
Clicking the test button will send a request to the AutoGuard API and display the result below.