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": "79a71912-4ea0-45d0-915f-c4d2bee4a028",
  "user_id": "4570ab4b-cb0d-47af-bfb2-27f60e21e729",
  "device_id": "50a30e73-7f6e-4c70-b226-f6e2184a0fdf",
  "date": "2026-11-12T14:28:00.1501327+00:00",
  "dateutc": "2026-11-12T14:28:00.1501327+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-11-12T14:28:00.150Z</date>
  <dateutc>2026-11-12T14:28:00.150Z</dateutc>
  <device_id>50a30e73-7f6e-4c70-b226-f6e2184a0fdf</device_id>
  <id>79a71912-4ea0-45d0-915f-c4d2bee4a028</id>
  <latitude_decimal>6</latitude_decimal>
  <longitude_decimal>7</longitude_decimal>
  <user_id>4570ab4b-cb0d-47af-bfb2-27f60e21e729</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": "37663b40-f0a1-4add-8276-66f5cbe7beb9",
  "user_id": "c7fd8ef4-f7fe-4007-b930-e1b77eed42a3",
  "device_id": "58f63815-ce93-468c-be90-2bdd6bcf7cd4",
  "date": "2026-11-12T14:28:00.1501327+00:00",
  "dateutc": "2026-11-12T14:28:00.1501327+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-11-12T14:28:00.150Z</date>
  <dateutc>2026-11-12T14:28:00.150Z</dateutc>
  <device_id>58f63815-ce93-468c-be90-2bdd6bcf7cd4</device_id>
  <id>37663b40-f0a1-4add-8276-66f5cbe7beb9</id>
  <latitude_decimal>6</latitude_decimal>
  <longitude_decimal>7</longitude_decimal>
  <user_id>c7fd8ef4-f7fe-4007-b930-e1b77eed42a3</user_id>
</gps_log>