API GPS Tracking Software. White Label | TeraTrack
This website uses cookies.
See our Privacy Policy to learn more.
Introduction
Welcome
Authentication
Device
Sensor
Service
Event
History
Alert
Custom event
Geofence
Route
Report
Map icon
Driver
Command
GPRS Template
SMS Template
Task
Setup

No resources found
Route
GET /get_routes
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
Responses application/json

																	
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
POST /add_route
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
Request Body multipart/form-data
object Validation {routePost}
name string required
color string required
polyline string array[object] Validation {LatLng}
required
lat number optional
lng number optional
{
  "name": "Route name",
  "color": "#232323",
  "polyline": [
    {
      "lat": 54.91550070170091,
      "lng": 23.94092559814453
    },
    {
      "lat": 55.91550070170091,
      "lng": 24.94092559814453
    },
    {
      "lat": 56.91550070170091,
      "lng": 25.94092559814453
    }
  ]
}
Responses application/json
object Validation {success}
status integer optional

																	
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
POST /edit_route
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
Request Body multipart/form-data
object
id integer Validation {ObjectID}
required
name string Validation {routePost}
required
color string Validation {routePost}
required
polyline string array[object] Validation {LatLng}
required
lat number optional
lng number optional
{
  "id": 2,
  "name": "Route name",
  "color": "#232323",
  "polyline": [
    {
      "lat": 54.91550070170091,
      "lng": 23.94092559814453
    },
    {
      "lat": 55.91550070170091,
      "lng": 24.94092559814453
    },
    {
      "lat": 56.91550070170091,
      "lng": 25.94092559814453
    }
  ]
}
Responses application/json
object Validation {success}
status integer optional

																	
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
GET /destroy_route
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
route_id integer required
Responses application/json
object Validation {success}
status integer optional

																	
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
GET /change_active_route
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
Request Body
object
id integer array[integer] optional
active boolean optional

															
Responses application/json
object Validation {success}
status integer optional

																	
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
MODEL routePost
object
name string required
color string required
polyline string array[object] Validation {LatLng}
required
lat number optional
lng number optional
{
  "name": "Route name",
  "color": "#232323",
  "polyline": [
    {
      "lat": 54.91550070170091,
      "lng": 23.94092559814453
    },
    {
      "lat": 55.91550070170091,
      "lng": 24.94092559814453
    },
    {
      "lat": 56.91550070170091,
      "lng": 25.94092559814453
    }
  ]
}