Community
Lookups for domain data?
Getting up to speed on the API for a client and am not sure where to look to find standard domain data for various objects. For example, calling the ELD-Events endpoint returns a structure with this object embedded:
{
"time": "2023-10-15T07:00:00.000Z",
"eldEventType": 1,
"eldEventCode": 1,
"eldEventRecordOrigin": 2,
"eldEventRecordStatus": 1,
"accumulatedVehicleMeters": 0,
"totalVehicleMeters": 0,
"elapsedEngineHours": 0,
"location": {
"latitude": 33.44592464,
"longitude": -112.25274009,
"city": "Tolleson",
"state": "AZ",
"eldLocation": "0.5 mi SE Tolleson, AZ"
}}
Is there a place I can look up eldEventType, so I have some context what the value 1 maps to?
Thanks!
Hey Darren,
Certainly. To find detailed information on HOS ELD Events, follow these steps:
- Visit the documentation page for the HOS ELD Events endpoint at https://developers.samsara.com/reference/gethoseldevents.
- Navigate to the "Responses" section.
- Click on the "200 (OK Response)" tab.
- Within this section, locate the parameter eldEventType. You'll find a link there to the ELD Mandate document, which elaborates on the details for each object.
ο»Ώ