Methods

Add (...)

Adds a new Entity to the database. This method is used to add the different entities to the database, for example Device, User or Zone. In addition to the credentials, the method will require a minimum of two parameters - the type of entity that is being added (typeName) and the entity itself. In most cases, the entity being added will need to be fully constructed. In other words, all its properties need to be defined. These requirements are defined in each of the entity definitions below.

Authenticate (...)

Authenticates a user and provides a LoginResult if successful. The authentication pattern is documented in the Concepts sections of the SDK.
Throws:

CreateDatabase (...)

Creates a uniquely named database on a server in the federation. Requires either a valid CaptchaAnswer or valid MyAdmin user credentials. For current reseller automation guidance, see the Customer Onboarding Starter Kit.

DownloadMediaFile (...)

Download a file for the given MediaFile. The Content-Type is determined by the file extension. Range headers are supported.

EmissionEnrollDevices (...)

Enrolls devices for Clean Truck Check emission reporting.
A device enrolled without a DMV registration date is enrolled as state Other.
Requires the AccessCleanTruckCheckCompliance security clearance.

GenerateCaptcha (...)

Generates a single use CAPTCHA image for the given key and serves the result as "image/png" content.

Get (...)

Gets the Entity(s) for the given entityType. This method can be used in various ways to return all, one or some specific set of data for the Entity(s).

GetAddresses (...)

Gets addresses from the list of Coordinate(s), as well as any Zones in the system that contain the given coordinates.

GetAveragedCrashProbability (...)

Get the fleet-wide average predicted crash probability for vehicles, over a range of observation dates. Each date's average is weighted by the distance each vehicle travelled in the preceding seven days, so vehicles that drove further contribute proportionally more.
Requires the ViewVehicleAnalytics security clearance.

GetAveragedCrashProbabilityDriver (...)

Get the fleet-wide average predicted crash probability for drivers, over a range of observation dates. Each date's average is weighted by the distance each driver travelled in the preceding seven days, so drivers who drove further contribute proportionally more.
Requires the ViewDriverAnalytics security clearance.

GetCoordinates (...)

Geocodes or looks up the latitude and longitude from a list of addresses.
When MapBox is the configured geocoder, each address is limited to 20 search tokens. Addresses exceeding that limit are not looked up and return null.

GetCoordinatesDetailed (...)

Geocodes or looks up the latitude and longitude from a list of addresses, returning one result per input address with an explicit GeocodeStatus so callers can distinguish an address that was not found from one that was rejected for exceeding the provider's input length limit, or that could not be resolved due to a transient provider failure. Results are returned in input order and a single rejected or failed address never fails the rest of the batch.
When MapBox is the configured geocoder, each address is limited to 20 search tokens. Addresses exceeding that limit are not looked up and return InputTooLong with a null coordinate; a transient provider failure (rate limit, timeout) for an address returns Unknown — not NotFound — since the address may resolve on retry. Use this method instead of WebMethods.GetCoordinatesAsync when you need to act on individual per-address outcomes; GetCoordinates returns null for both "not found" and "input rejected" and remains unchanged.

GetCountOf (...)

Gets the count of the specified Entity type from the database. Entities that are currently inactive (the Entity's ActiveTo date is before the current time) are counted as well.

GetDaylightSavingRules (...)

Get a Timezone's TimeZoneInfoWithRules by the timeZoneId.

GetDeviceCommandHistory (...)

Gets the paginated command history for an OEM device.

GetDeviceCommandStatus (...)

Gets a command status asynchronously for an OEM device.

GetDirections (...)

Gets step-by-step driving Directions for a sequence of Waypoints including estimate travel time and distances.

GetEmissionComplianceDeadline (...)

Gets the Clean Check Truck compliance enrollment status including the next compliance deadline for a device.
Requires one of the following security clearances: AccessCleanTruckCheckCompliance, AccessCleanTruckCheckComplianceEditor or AccessCleanTruckCheckComplianceViewer.

GetFeed (...)

This is the primary method used to sync data from the MyGeotab system for example all the GPS positions. The following entities are currently supported and must be set in the typeName.
See AnnotationLog and AnnotationLogSearch for Annotation Log related parameters.
See Audit and AuditSearch to provide a fromDate from which to seed the feed.
See ChargeEvent and ChargeEventSearch for Charge Event related parameters.
See CustomData and CustomDataSearch for Custom Data related parameters.
See DebugData and DebugDataSearch for Debug Data related parameters. Note: only DebugDataSearch.fromDate is applied in GetFeed; other search parameters including DebugDataSearch.deviceSearch , DebugDataSearch.toDate, and DebugDataSearch.debugReason are ignored.
See Device *search not supported. Maximum results: 5,000.
See DeviceJurisdictionTraversalSummary and DeviceJurisdictionTraversalSummarySearch. Supports Id, DeviceSearch, and FromDate; ToDate is ignored. Maximum results: 50,000.
See DeviceShare *search not supported.
See DeviceStatusInfo *search not supported other than DeviceStatusInfoSearch.Diagnostics property.
See Diagnostic *search not supported.
See DriverChange and DriverChangeSearch to provide a fromDate from which to seed the feed.
See DutyStatusLog and DutyStatusLogSearch for Duty Status Log related parameters.
See DVIRLog and DVIRLogSearch for DVIR Log related parameters.
See EmissionComplianceEvent and EmissionComplianceEventSearch for Emission Compliance Event related parameters.
See EmissionVehicleEnrollment and EmissionVehicleEnrollmentSearch for Emission Vehicle Enrollment related parameters.
See ExceptionEvent and ExceptionEventSearch for Exception Event related parameters.
See FailureMode *search not supported.
See FaultData and FaultDataSearch for Fault Data related parameters.
See FillUp and FillUpSearch for Fill Up related parameters. Maximum results: 10,000.
See FuelTaxDetail and FuelTaxDetailSearch for Fuel Tax Detail related parameters.
See FuelUsed and FuelUsedSearch for Fuel Used related parameters.
See FuelAndEnergyUsed and FuelAndEnergyUsedSearch for Fuel and Energy Used related parameters.
See IoxAddOn and IoxAddOnSearch for Iox Add-On related parameters.
See LogRecord *search not supported. Search parameters will be ignored. Results are not guaranteed to be in chronological order: a later call can return a LogRecord with an older LogRecord.dateTime than one already received. See the LogRecord remarks for the recommended client-side handling.
See MediaFile *search not supported. Maximum results: 10,000.
See Route and RouteSearch to provide a fromDate from which to seed the feed. Maximum results: 10,000.
See Rule (including ZoneStop ExceptionRuleBaseType) *search not supported. Maximum results: 10,000.
See SharedMobilitySettings *search not supported. Maximum results: 50,000.
See Booking and BookingSearch for Shared Mobility reservation changes. The feed includes deleted bookings, ignores its search argument and requires SHARED_MOBILITY.RESERVATIONS.RELEASE. Maximum results: 50,000.
See BookingSeries for Shared Mobility repeat rules. The feed includes deleted series, ignores its search argument and requires SHARED_MOBILITY.RESERVATIONS.RELEASE. Maximum results: 50,000.
See ShipmentLog and ShipmentLogSearch for Shipment Log related parameters.
See StatusData *search not supported.
See TextMessage and TextMessageSearch to provide a fromDate from which to seed the feed.
See Trailer *search not supported.
See TachographDataFile and TachographDataFileSearch to provide a user, device, type or from timestamp date to seed the feed.
See TrailerAttachment and TrailerAttachmentSearch for Trailer Attachment related parameters.
See Trip and TripSearch for Trip related parameters. Note: only TripSearch.fromDate is applied in GetFeed; other search parameters including TripSearch.deviceSearch are ignored.
See User (including Driver) *search not supported. Maximum results: 5,000.
See Zone *search not supported. Maximum results: 10,000.
This call is designed to allow incremental updates by returning a FeedResult which contains the last version from the set of data returned. This return version is then used as the fromVersion argument for the next call. This guarantees that no changes in the data can be missed and that all data is consistently returned. It is important to understand that this feed call only returns changes in the data; so that at least one change must be received, otherwise the state is considered unknown. This call would typically be made every minute or more, to keep the data near real-time and up to date. Provide search parameters to limit the scope of the data being returned. In some rare circumstances old data in the system can be modified. If this happens, that old data is resent (with the changes) as it will have a newer version. In your design you must consider this.
It may be required to provide an entity search using from date to "back-fill" or "seed" data from a date in the past. Providing a from date guarantees that the feed will start at a version with all entities that have a date greater than or equal to the date provided. However, it is possible that the feed will return entities before the provided date. Searching using from date should be used independent of fromVersion and only on the first request.
Id based search will not be applied to the call. Any id passed as parameter will be ignored.

GetLanguages (...)

Gets all Languages as Language.

GetLatestSafetyFleetBenchmark (...)

Get the most recent SafetyFleetBenchmark, which carries the industry benchmark and best-in-class crash probability values that fleet safety figures are compared against.
The benchmark for the latest available observation date is returned; there is no date parameter.
Requires one of the following security clearances: ViewDriverAnalytics or ViewVehicleAnalytics.

GetMaterialManagementRouteBased (...)

Gets one page of the route-based Material Management data of one service group: one row per route group, with one row for the routes in no route group, in the default RouteGroup view, or one row per route in the Route view. A route row sums every crossing of the route's zones by the service group in the date range, that is, every crossing its travel rules recorded, so a zone shared with another service area does not count that area's crossings. A route group row sums its route rows. The rows are built from the stored segment material aggregates. A measure no activity contributed to is null where the report shows zero. Unlike the legacy route-based report, the date range includes crossings by start time rather than overlap, and the Groups filter applies to travel totals as well as material totals. Route-group filters match direct parents only. For an event with metadata naming several zones, the first zone in metadata-id order is used, matching the stored aggregate producer. The legacy report uses its metadata read order, which can choose another zone. These cases can produce different totals from the report.
Every route of the service group is returned, including routes nothing crossed, whose measures are null, but never soft-deleted data. As in the report, the total time and total distance are those driven inside the route's zones, so the total time can be less than the spread time. Units are the report's storage units: solid in grams, anti-ice and pre-wet in litres, rates in kilograms per kilometre (solid), litres per kilometre (anti-ice) and litres per tonne (pre-wet), distances in kilometres and durations as time spans. See MaterialManagementRouteBasedRecord.
A route or route group has one row unless its zones saw more than one type of a material. It then has as many rows as the material with the most types, each holding one type of each material with its own total and rate, so paging and the count are in rows.
The default order is name ascending, with the routes in no route group last. Sort by any column of the record by naming it in ISort.sortBy, for example solidTotal; null values sort lowest. Sorting by primary, routeId or routeGroupId orders by the route or route group name, and a sort by route group puts the routes in no route group last. A column that is null for every row, such as deviceId, leaves the default order unchanged; name, id and then the position among the rows of the same route or route group break ties in ascending order. Page with resultsLimit and resultsOffset, and use WebMethods.GetMaterialManagementRouteBasedCountAsync for the number of rows rather than recounting.
Requires the Material Management report clearance and, as the route-based report does, a clearance to view routes and read exception events. Only the routes the caller can see and the zone crossings of the vehicles in the caller's groups are included, and only their own crossings for a driver who may see only their own data.

GetMaterialManagementRouteBasedCount (...)

Counts the rows of WebMethods.GetMaterialManagementRouteBasedAsync for the same filters, across every page: the rows of each route in the Route view, and of each route group, with one for the routes in no route group, in the RouteGroup view. A route or route group has one row for each type of its material with the most types, and at least one. Requires the Material Management report clearance, and counts only the routes the caller can see.

GetMaterialManagementTripBased (...)

Gets one page of the trip-based Material Management data: in the Trip view, the trips in scope, with the material their vehicle spread during them. The rows are built from the live trips and the stored trip material aggregates, joined on vehicle and trip start, and follow the trip-based Material Management report, with these differences: a measure no activity contributed to is null where the report shows zero; the date range selects trips by their start, where the report selects them by their stop; each material type has its own total and rate, where the report shows the last type with the total and rate of them all; a rate's distance is the spread distance of the type's aggregate that reported a rate; and the plow measures are not recorded yet.
A trip has one row unless it has more than one type of a material. It then has as many rows as the material with the most types, and row n holds the n-th type, in ascending order of code, of every material that has one, so that every type has its own total and rate. The trip's own fields repeat in each of its rows.
Every trip in scope is returned, including trips with no spread activity, but never a soft-deleted trip or soft-deleted aggregate. Units are the report's storage units: solid in grams, anti-ice and pre-wet in litres, rates in kilograms per kilometre (solid), litres per kilometre (anti-ice) and litres per tonne (pre-wet), distances in kilometres and durations as time spans. See MaterialManagementTripBasedRecord.
The default order is trip start, newest first, with a stable tie-break that keeps the rows of a trip together and in order. Sort by any column of the record by naming it in ISort.sortBy, for example solidTotal; null values sort lowest. Page with resultsLimit and resultsOffset, which count rows, and use WebMethods.GetMaterialManagementTripBasedCountAsync for the number of rows rather than recounting. The rows of one trip can fall on two pages.
Requires the Material Management report clearance and, as the trip-based report does, a clearance to view trips. Returns only the trips of the vehicles in the caller's groups, and only their own trips to a driver who may see only their own data. A driver outside the caller's driver groups shows as the Unassigned driver, as every driver does to a caller who cannot view users. The trip id changes when trips are merged, so the device id and trip start are the stable key of a trip.

GetMaterialManagementTripBasedCount (...)

Counts the rows of WebMethods.GetMaterialManagementTripBasedAsync for the same filters, across every page: in the Trip view, one for each trip in scope and one more for each type of a material beyond the first in the trip's most varied material. Requires the Material Management report clearance and a clearance to view trips, and counts only the trips of the vehicles in the caller's groups, and only their own trips for a driver who may see only their own data.

GetPostedRoadSpeedsForDevice (...)

Get all posted road speed changes for a device's trips for the given dates. If the from date and to date are in the middle of the trip, the data for the whole trip are included.

GetRegions (...)

Gets all Regions as Region.

GetSystemTimeUtc (...)

Gets system time in UTC (Coordinated Universal Time).

GetTimeZones (...)

Get a collection of TimeZoneInfo (Olson time zones).

GetVersion (...)

The version of the server.

GetVersionInformation (...)

The version information of the server.

OptimizeWaypoints (...)

Optimizes a set of Waypoint(s).

Remove (...)

Permanently removes an Entity and its associated data. The Entity object must have an Id field. Remaining fields are optional. Note: the Entity does not function as a filter.
Important: this method can trigger cascading removal of all dependent objects associated with the Entity. For example removing a Device would remove all LogRecords associated with it.

Set (...)

Updates an existing Entity. This operation is not a JSON Patch: retrieve the current entity, change only the intended properties, preserve its Entity.id and all other current or required properties, then submit the complete entity.

SetUserPassword (...)

Set the User's password.

UploadMediaFile (...)

Upload a file for the corresponding MediaFile using multipart/form-data POST request.