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

Id
integer
Example:

1305200

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

Voltage
number<float> | null

Battery voltage, V

Example:

12.6

Fatigue
string<duration>

Fatigue time

Example:

"00:30:00"

EngineHours
number<double>

Engine on time

Example:

30.5

SatSignal
string

Satellite signal status

Example:

"Good"

Satellites
integer

Number of satellites

Example:

8

ConnectionStrengh
string

Connection strength

Example:

"Excellent"

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
int

Total number of driving time, seconds

Example:

3000

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"