Generate Mock Data

Last updated 22 days ago

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.

Mock API

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

Parameters

Name

Type

Description

device_id

String

Optional

Pass a device_id if you want to use an existing mock device. If left blank, we generate a new mock device.

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.

Sample API

curl
--request GET \
--url https://api.hypertrack.com/core/v1/mock?
device_id=A2AA2CBD-A4D8-4C3C-8ABA-FF55AEAFDAA9&
current_location=-122.39333, 37.77603&
visits=[(-122.39333, 37.77603)]' \
--header 'Authorization: token PUBLISHABLE_KEY' \
--header 'Content-Type: application/json' \