Create location history
Location history has three types of payloads:
General: This payload is sent without any specific business process. All payloads sent will be saved and can be visualized.
Start - Finish: This payload tracks a user’s movement, both during general online activity and while performing a specific task. The ‘Finish’ payload cannot be saved unless it is preceded by a ‘Start’ payload, and a new ‘Start’ payload cannot be saved until the previous one has been completed.
Custom Data: This payload is typically used by integrators. MileApp provides a ‘data’ key with an object data type. This key can store dynamic data according to user needs. For example, users can store data such as fuel levels, vehicle temperature, and more.
Authorizations
Use a valid Bearer token to authenticate.
Body
Required, User's email assigned to the monitored task. Example: example@mile.app
Required, Latitude coordinate position or location of any place on Earth's surface. Example: -6.1771046
Required, Longitude coordinate position or location of any place on Earth's surface. Example: 106.9240199