Skip to main content
POST
/
api
/
GetNearest
Get nearest vehicles from point
curl --request POST \
  --url https://api.telemax.com.au/api/GetNearest \
  --header 'Authorization: <authorization>'
[
  {
    "vehicle": {
      "isEngineStarted": true,
      "engineTime": "PT3H45M",
      "isEngineLocked": false,
      "engineCoolantTemp": 92.5,
      "engineRpm": 2500,
      "odometer": 12456.7,
      "odometerSource": "GPS",
      "externalBatteryVoltage": 12.8,
      "fuelLevel": 78,
      "isCharging": false,
      "timeToCharge": "PT1H20M",
      "chargerPower": 3400,
      "tirePressures": [
        35.2,
        35.4,
        34.9,
        35
      ],
      "isDoorsLocked": true,
      "route": {
        "location": {
          "x": -74.006,
          "y": 40.7128
        },
        "direction": 90,
        "speed": 65.5
      },
      "gpsInfo": {
        "isInWorkingMode": true,
        "satellitesCount": 8
      },
      "accelerometer": {
        "x": 0.01,
        "y": -0.03,
        "z": 0.98
      },
      "gyroscope": {
        "x": 2,
        "y": -1,
        "z": 0
      },
      "solarPanel": {
        "voltage": 5.5,
        "isCharging": true
      },
      "tracker": {
        "networkSignalStrength": 80,
        "internalBatteryVoltage": 3.7
      }
    },
    "distance": 10500
  }
]

Headers

Content-Type
string

Standard and must keep as it is.

Authorization
string
required

Bearer your_token

Query Parameters

lat
number
required

Latitude

lng
number
required

Longitude

compId
integer
required

Company ID.

num
integer

Number of vehicles to get.

radius
number

Radius from point.

Response

200 - application/json

Successful response with array of vehicle records and distances

vehicle
object

Vehicle data record containing engine, telemetry, and location info

distance
number<double>

Distance traveled in meters

Example:

10500