Skip to main content
POST
/
api
/
GetLastPositionData
Get last position data for vehicle
curl --request POST \
  --url https://api.telemax.com.au/api/GetLastPositionData \
  --header 'Authorization: <authorization>'
[
  {
    "utcTime": "2024-01-15T10:30:00Z",
    "userTime": "2024-01-15T12:30:00+02:00",
    "userTimeFormatted": "15/01/2024 12:30:00",
    "lat": 40.7128,
    "lng": -74.006,
    "speed": 65.5,
    "course": 90,
    "ignition": true,
    "odometer": 125000.5,
    "deviceId": 12345,
    "deviceName": "Fleet Vehicle 001",
    "address": "123 Main St, New York, NY 10001"
  }
]

Headers

Content-Type
string

Standard and must keep as it is.

Authorization
string
required

Bearer your_token

Query Parameters

id
integer
required

Vehicle ID.

Response

200 - application/json

Successful response with position data

utcTime
string<date-time>

Time in UTC

Example:

"2024-01-15T10:30:00Z"

userTime
string<date-time>

Time in user timezone

Example:

"2024-01-15T12:30:00+02:00"

userTimeFormatted
string

Time in user time format

Example:

"15/01/2024 12:30:00"

lat
number<double>

Latitude

Example:

40.7128

lng
number<double>

Longitude

Example:

-74.006

speed
number<double>

Speed, kmh

Example:

65.5

course
integer

Direction, degrees (N - 0, E - 90, S - 180, W - 270)

Example:

90

ignition
boolean

Ignition status

Example:

true

odometer
number<float> | null

Odometer value, km

Example:

125000.5

internalBatteryVoltage
number<float> | null

Battery voltage, V

Example:

12.6

fatigue
string<duration>

Fatigue time

Example:

"PT2H30M"

engineHours
string<duration>

Engine on time

Example:

"PT150H45M"

satSignal
string

Satellite signal status

Example:

"Good"

satellites
integer

Number of satellites

Example:

8

connectionStrength
integer

Connection strength status

Required range: 0 <= x <= 255
Example:

85

deviceId
integer

Vehicle ID

Example:

12345

ignitionTime
number<double> | null

Trip duration, seconds

Example:

3600.5

deviceName
string

Name of the vehicle

Example:

"Fleet Vehicle 001"

imei
string

IMEI of the tracker

Example:

"123456789012345"

vin
string | null

VIN of the vehicle

Example:

"1HGBH41JXMN109186"

startMovingTime
string<date-time> | null

Time when vehicle started to move, UTC

Example:

"2024-01-15T08:00:00Z"

startMovingTimeUser
string<date-time> | null

Time when vehicle started to move, user timezone

Example:

"2024-01-15T10:00:00+02:00"

lastMovementTime
string<date-time> | null

Time when vehicle stopped, UTC

Example:

"2024-01-15T16:00:00Z"

lastMovementTimeUser
string<date-time> | null

Time when vehicle stopped, user timezone

Example:

"2024-01-15T18:00:00+02:00"

lastMovementTimeUserFormatted
string | null

Time when vehicle stopped, user timezone and formatted

Example:

"15/01/2024 18:00:00"

drivingTime
string<date-time> | null

Driving time within the trip

Example:

"2024-01-15T14:30:00Z"

driver
string | null

Driver name if any

Example:

"John Smith"

fuelLevel
integer

Fuel level, %

Required range: 0 <= x <= 100
Example:

75

dtc
string | null

DTC code

Example:

"P0301"

isDoorLocked
boolean
deprecated

Is the door locked (Deprecated)

Example:

true

address
string

Address of the vehicle

Example:

"123 Main St, New York, NY 10001"

engineEnabled
boolean

Whether the engine is enabled

Example:

true

timeElapsed
number<double>

Request time elapsed

Example:

0.125

startedTime
string<date-time>

Request start time

Example:

"2024-01-15T10:30:00Z"

endTime
string<date-time>

Request end time

Example:

"2024-01-15T10:30:01Z"