Skip to main content
All CollectionsWeb APIAPI Endpoints
Web API – User Current Location
Web API – User Current Location
Updated over a week ago

Find User Last Known Location

Request URL

GET https://www.triplogmileage.com/web/api/currentLocations (Returns all the active drivers current locations.)

GET https://www.triplogmileage.com/web/api/users/[user_id]/currentLocation (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://www.triplogmileage.com/web/api/users/124",
"email": "[email protected]",
"display": "Driver, TripLog"
}
},
{
"time": "2024-07-19T17:03:28.681Z",
"latitude": XX.XXXX,
"longitude": -XXX.XXXX,
"speed": 0,
"user": {
"id": 234,
"url": "https://www.triplogmileage.com/web/api/users/234",
"email": "[email protected]",
"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?