*/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
Last updated
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
Last updated
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
deviceId
The deviceId
of a chosen reference device to calculate gapDistance
and bearing
to the other devices.
If API is called without a deviceId
then gapDistance
and bearing
is calculated for the first device in the list.
Field | Description [unit] | Sample |
---|---|---|
Field | Description [unit] | Sample |
---|---|---|
The current
-object provides the latest data
Field | Description [unit] | Sample |
---|---|---|
name
Name of event
"Sample live | 100km Duathlon"
location
Location
"🇩🇪 Dresden"
startTime
Start time in UTC
"2022-03-09T07:00:03.201Z"
endTime
End time in UTC
"2022-03-09T14:59:38.201Z"
starters
Array for participant objects
id
Unique Racemap ID of participant
"61a2122f181c0a6c4bb5376e"
importId
User-defined ID with imported participant data, Generic API (importId
) or RACE|RESULT API (Id
)
"UniqueImportId_2"
or "null"
if no importId exists
startNumber
Bib number
"2"
name
Name
"CLV Megware"
current
Object for real-time data
null
if no locations within startTime
and endTime
time
Timestamp in UTC when device recorded latest geolocation
"2022-03-09T13:23:15.000Z"
lat
Latitude
51.04229
lng
Longitude
13.63867
gapDistance
Distance [m] between latest locations of device and reference device
679.799215351
or 0
for the reference device
bearing
Angle [°] line between latest locations of device and reference device and line from south to north
-76.372782293
or 0
for the reference device