Skip to main content

Web API – User Current Location

Updated over 2 months ago

Find User Last Known Location

Request URL

(Returns all the active drivers current locations.)

(Returns only the particular user’s current location.)

Query parameters

None

Example

Example Response (modified lat/long)

{
"message": "OK",
"currentLocations": [
{
"time": "2024-07-07T03:41:44.000Z",
"latitude": XX.XXXX,
"longitude": -XX.XXXX,
"speed": 19,
"user": {
"id": 124,
"url": "https://app.triplog.net/web/api/users/124",
"email": "driver@bizlog.com",
"display": "Driver, TripLog"
}
},
{
"time": "2024-07-19T17:03:28.681Z",
"latitude": XX.XXXX,
"longitude": -XXX.XXXX,
"speed": 0,
"user": {
"id": 234,
"url": "https://app.triplog.net/web/api/users/234",
"email": "demouser@triplog.com",
"display": "User, Demo"
}
}
]
}

Example Response (modified lat/long)

{
"message": "OK",
"currentLocation": {
"time": "2024-07-19T17:03:28.681Z",
"latitude": XX.XXXXX,
"longitude": -XXX.XXXXX,
"speed": 0
}
}

Did this answer your question?