*/distance and locations
API with real-time geolocations, distances, and bearings to a reference device; for maximum stability and minimum delay the data is processed as little as possible
Request
URL https://racemap.com/api/data/v1/:eventId/distance
Method GET
Live sample https://racemap.com/api/data/v1/66bf4318d1c783279d183dd3/distance Corresponding map https://racemap.com/player/100KmDuathlon2018_API-live-sample
Optional query with deviceId
deviceId
The
deviceId
of a chosen reference device to calculategapDistance
andbearing
to the other devices.If API is called without a
deviceId
thengapDistance
andbearing
is calculated for the first device in the list.
Response
Event object
Field | Description [unit] | Sample |
---|---|---|
| Name of event |
|
| Location |
|
| Start time in UTC |
|
| End time in UTC |
|
| Array for participant objects |
Participant object
Field | Description [unit] | Sample |
---|---|---|
| Unique Racemap ID of participant |
|
| User-defined ID with imported participant data, Generic API ( |
|
| Bib number |
|
| Name |
|
| Object for real-time data |
if no locations within |
Current object
The current
-object provides the latest data
Field | Description [unit] | Sample |
---|---|---|
| Timestamp in UTC when device recorded latest geolocation |
|
| Latitude |
|
| Longitude |
|
| Distance [m] between latest locations of device and reference device |
|
| Angle [°] line between latest locations of device and reference device and line from south to north |
|
Sample response
Last updated