Records a single GPS ping.

Request Information

URI Parameters :

None.

Body Parameters :

gps_log
NameDescriptionTypeAdditional information
id

Primary key

globally unique identifier

Required

user_id

User ID

globally unique identifier
device_id

Device ID

globally unique identifier
date

Local date and time this position was recorded on the device.

date
dateutc

UTC date and time this position was recorded.

date
latitude_decimal

Latitude decimal

decimal number
longitude_decimal

Longitude decimal

decimal number

Request Formats :

application/json, text/json

Sample:
{
  "id": "7b0d3661-b67c-472f-8ac1-3512a0a05bf2",
  "user_id": "96ae985b-4ad8-48be-aa15-b64126ddb716",
  "device_id": "2493c540-1d71-4b02-9c45-fde012cc17c6",
  "date": "2026-09-16T10:13:33.4032245+00:00",
  "dateutc": "2026-09-16T10:13:33.4032245+00:00",
  "latitude_decimal": 6.0,
  "longitude_decimal": 7.0
}

application/xml, text/xml

Sample:
<gps_log xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <date>2026-09-16T10:13:33.403Z</date>
  <dateutc>2026-09-16T10:13:33.403Z</dateutc>
  <device_id>2493c540-1d71-4b02-9c45-fde012cc17c6</device_id>
  <id>7b0d3661-b67c-472f-8ac1-3512a0a05bf2</id>
  <latitude_decimal>6</latitude_decimal>
  <longitude_decimal>7</longitude_decimal>
  <user_id>96ae985b-4ad8-48be-aa15-b64126ddb716</user_id>
</gps_log>

Response Information

Resource Description :

IHttpActionResult containing the created GPS log.

gps_log
NameDescriptionTypeAdditional information
id

Primary key

globally unique identifier

Required

user_id

User ID

globally unique identifier
device_id

Device ID

globally unique identifier
date

Local date and time this position was recorded on the device.

date
dateutc

UTC date and time this position was recorded.

date
latitude_decimal

Latitude decimal

decimal number
longitude_decimal

Longitude decimal

decimal number

Response Formats

application/json, text/json

Sample:
{
  "id": "41af132a-7564-4ed1-9021-cd24431645b8",
  "user_id": "8181a6a8-fe3e-41cb-b3af-b9bb4dcbe6dc",
  "device_id": "4ce972ad-375f-441a-9e69-a31b5fd97a49",
  "date": "2026-09-16T10:13:33.4317492+00:00",
  "dateutc": "2026-09-16T10:13:33.4317492+00:00",
  "latitude_decimal": 6.0,
  "longitude_decimal": 7.0
}

application/xml, text/xml

Sample:
<gps_log xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <date>2026-09-16T10:13:33.431Z</date>
  <dateutc>2026-09-16T10:13:33.431Z</dateutc>
  <device_id>4ce972ad-375f-441a-9e69-a31b5fd97a49</device_id>
  <id>41af132a-7564-4ed1-9021-cd24431645b8</id>
  <latitude_decimal>6</latitude_decimal>
  <longitude_decimal>7</longitude_decimal>
  <user_id>8181a6a8-fe3e-41cb-b3af-b9bb4dcbe6dc</user_id>
</gps_log>