Skip to main content
POST
/
api
/
GetReplay
Get replay points
curl --request POST \
  --url https://api.telemax.com.au/api/GetReplay \
  --header 'Authorization: <authorization>'
[
  {
    "distance": 15640.75,
    "duration": "PT1H25M",
    "startAddress": "123 Main St, New York, NY 10001",
    "endAddress": "789 Park Ave, New York, NY 10021",
    "startTimeUser": "2024-01-15T08:00:00+02:00",
    "endTimeUser": "2024-01-15T09:25:00+02:00",
    "encoded": "mfp_IvhkeLh@d@pFzBrA`@v@eBhA",
    "url": "https://maps.googleapis.com/maps/api/staticmap?path=enc:mfp_IvhkeLh@d@pFzBrA`@v@eBhA",
    "points": [
      {
        "lat": 40.7128,
        "lng": -74.006,
        "utcTime": "2024-01-15T08:15:00Z"
      },
      {
        "lat": 40.7135,
        "lng": -74.0055,
        "utcTime": "2024-01-15T08:30:00Z"
      }
    ]
  }
]

Headers

Content-Type
string

Standard and must keep as it is.

Authorization
string
required

Bearer your_token

Query Parameters

id
integer
required

Vehicle ID

from
string
required

From Date and Time

to
string
required

To Date and Time

Response

200 - application/json

Successful response with array of vehicle trip data

distance
number<double> | null

Distance of the trip in meters

Example:

15640.75

duration
string<duration>

Duration of the trip

Example:

"PT1H25M"

startAddress
string

Start address of the trip

Example:

"123 Main St, New York, NY 10001"

endAddress
string

End address of the trip

Example:

"789 Park Ave, New York, NY 10021"

startTimeUser
string<date-time>

Start time of the trip (user timezone)

Example:

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

endTimeUser
string<date-time>

End time of the trip (user timezone)

Example:

"2024-01-15T09:25:00+02:00"

encoded
string

Encoded string of the trip path for Google Static Maps

Example:

"mfp_IvhkeLh@d@pFzBrA@v@eBhA"`

url
string<uri>

Google Static Maps URL

Example:

"https://maps.googleapis.com/maps/api/staticmap?path=enc:mfp_IvhkeLh@d@pFzBrA@v@eBhA"`

points
object[]

List of vehicle positions within the trip