How to View Duty Status Violations through the SDK

Applies To

  • MyGeotab
  • Geotab Drive
  • HOS
  • SDK

Procedure

  1. Navigate to the API runner https://geotab.github.io/sdk/software/api/runner.html
  2. Login to the corresponding server
  3. Run the following API call to view the Duty Status Violations of a Driver
    • api.call("Get", {
      "typeName": "DutyStatusViolation",
      "search": {
      "UserSearch": {"id":"b1"},
      "fromDate":"2019-03-15T00:00:00.000Z",
      "toDate":"2019-03-16T00:00:00.000Z"
      }
      }, function(result) {
      console.log("Done: ", result);
      }, function(e) {
      console.error("Failed:", e);
      });
    • Modify the User ID accordingly
    • Modify the fromDate and toDate as required

Additional Notes

  • The timestamp in fromDate and toDate are in UTC
  • The User ID can be found from the URL of the MyGeotab User Edit page by navigating to Administration > Users