HyperTrack SDKs rejects mock locations generated by mock location apps. These apps provide a stream of locations (lat-longs). In contrast, HyperTrack generates movement data, which includes activity & device health data. This makes mock location apps insufficient for testing the full power of HyperTrack features. Read more on our blog on detecting mock locations.
We recommend using HyperTrack mock APIs to simulate real-world like situation. Use this API to generate visits around your current location (by passing
https://api.hypertrack.com/core/v1/mock
Name | Type | ​ | Description |
device_id | String | Optional | Pass a |
current_location | JSON | Optional | Pass the location from where you want to start the simulation. If left black, we use a random start location. |
visits | JSON | Optional | Pass a list of one or more lat-longs that you want to visit. |
curl--request GET \--url https://api.hypertrack.com/core/v1/mock?device_id=A2AA2CBD-A4D8-4C3C-8ABA-FF55AEAFDAA9¤t_location=-122.39333, 37.77603&visits=[(-122.39333, 37.77603)]' \--header 'Authorization: token PUBLISHABLE_KEY' \--header 'Content-Type: application/json' \
​