cURL
curl --request GET \ --url https://apiweb.mile.app/api/v3/location-history/{id} \ --header 'Authorization: Bearer <token>'
{ "status": true, "message": "Success", "location_history": { "email": "example@mile.app", "taskId": "634e98098ce69d29474a7e11", "speed": 40, "distance": 50, "duration": 50, "lat": -6.1771046, "lon": 106.9240199, "createdFrom": "GPS", "_id": "634e98098ce07d29474a7e22_example@mile.app_1675224349343", "time": 1675224349343, "organizationId": "634e98098ce07d29474a7e22", "createdTime": "2022-10-07 03:00:58", "updatedTime": "2022-10-07 04:00:58" } }
Use a valid Bearer token to authenticate.
Unique identifier for the location history that generated by system. Example: 634e98098ce07d29474a7e22_example@mile.app_1675224349343
634e98098ce07d29474a7e22_example@mile.app_1675224349343
Success
Indicates whether the request was successful.
HTTP status code.
A message providing additional information about the response.
Show child attributes
User's email assigned to the monitored task.
Latitude coordinate position.
Longitude coordinate position.
Vehicle speed in kilometers per hour.
Distance traveled from the previous location.
Distance estimated from the next location.
Time duration spent at this location in milliseconds.
Time at which the location history was created.
Unique identifier for the location history entry.
Unique ID to identify the task.
A timestamp indicating the time of the location history entry.
Unique identifier for the organization.
A flagging of location history with value otw, nearBy and done.
Identifier for flagging the latest location history
A flagging for describe location history created from, default value generated by system is mileAppField.
mileAppField
Email of the user who last updated the location history entry.
Email of the user who created the location history entry.
Time at which the location history entry was last updated.