The method returns current location coordinates (latitude and longitude values) of a specific truck.
The method contains path parameter - Number of the truck. /api/Location/{TruckNumber}, where {TruckNumber} is “T897OK01”, for example.
200 - OK
404 - No Truck found
curl -X GET "http://web.ws.int:8050/api/Location/O745BY25"
GET /api/Location/O745BY25 HTTP/1.1
Host: web.ws.int:8050
Status | 200 OK |
---|---|
|
Status | 404 Not Found |
---|
The method return distance (in meters) between two points, based on their coordinates (latitude and longitude) in query parameters.
200 - OK
400 - Invalid coordinates
curl -X GET "http://web.ws.int:8050/api/Distance?lat1=55.624396&lng1=116.312868&lat2=69.090343&lng2=72.881931"
GET /api/Distance?lat1=55.624396&lng1=116.312868&lat2=69.090343&lng2=72.881931 HTTP/1.1
Host: web.ws.int:8050
Status | 200 OK |
---|---|
|
Status | 200 OK |
---|---|
|
Status | 400 Bad Request |
---|---|
|
The method returns the list with all installed cameras on Truck Parks.
If camera on Truck Park isn’t working right now, then null value will be returned in CameraFrame.
200 - OK
curl -X GET "http://web.ws.int:8050/api/VideoStreams"
GET /api/VideoStreams HTTP/1.1
Host: web.ws.int:8050
Status | 200 OK |
---|---|
|