GET api/Dashboard/GetMCUnits/{CompanyId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
CompanyId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of MCUnitName | Description | Type | Additional information |
---|---|---|---|
UnitNumber | string |
None. |
|
Description | string |
None. |
|
TerminalID | string |
None. |
|
Network | string |
None. |
|
MilesToDestination | decimal number |
None. |
|
MPHToETA | decimal number |
None. |
|
Latitude | decimal number |
None. |
|
Longitude | decimal number |
None. |
|
LocationTimeStamp | date |
None. |
|
City | string |
None. |
|
State | string |
None. |
|
CityCode | string |
None. |
|
GeotabDeviceId | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "UnitNumber": "sample string 1", "Description": "sample string 2", "TerminalID": "sample string 3", "Network": "sample string 4", "MilesToDestination": 5.0, "MPHToETA": 6.0, "Latitude": 7.0, "Longitude": 8.0, "LocationTimeStamp": "2024-11-22T22:53:17.408098-06:00", "City": "sample string 10", "State": "sample string 11", "CityCode": "sample string 12", "GeotabDeviceId": "sample string 13" }, { "UnitNumber": "sample string 1", "Description": "sample string 2", "TerminalID": "sample string 3", "Network": "sample string 4", "MilesToDestination": 5.0, "MPHToETA": 6.0, "Latitude": 7.0, "Longitude": 8.0, "LocationTimeStamp": "2024-11-22T22:53:17.408098-06:00", "City": "sample string 10", "State": "sample string 11", "CityCode": "sample string 12", "GeotabDeviceId": "sample string 13" } ]
text/html
Sample:
[{"UnitNumber":"sample string 1","Description":"sample string 2","TerminalID":"sample string 3","Network":"sample string 4","MilesToDestination":5.0,"MPHToETA":6.0,"Latitude":7.0,"Longitude":8.0,"LocationTimeStamp":"2024-11-22T22:53:17.408098-06:00","City":"sample string 10","State":"sample string 11","CityCode":"sample string 12","GeotabDeviceId":"sample string 13"},{"UnitNumber":"sample string 1","Description":"sample string 2","TerminalID":"sample string 3","Network":"sample string 4","MilesToDestination":5.0,"MPHToETA":6.0,"Latitude":7.0,"Longitude":8.0,"LocationTimeStamp":"2024-11-22T22:53:17.408098-06:00","City":"sample string 10","State":"sample string 11","CityCode":"sample string 12","GeotabDeviceId":"sample string 13"}]
application/xml, text/xml
Sample:
<ArrayOfMCUnit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIObjectClasses.AS400ObjectModels"> <MCUnit> <City>sample string 10</City> <CityCode>sample string 12</CityCode> <Description>sample string 2</Description> <GeotabDeviceId>sample string 13</GeotabDeviceId> <Latitude>7</Latitude> <LocationTimeStamp>2024-11-22T22:53:17.408098-06:00</LocationTimeStamp> <Longitude>8</Longitude> <MPHToETA>6</MPHToETA> <MilesToDestination>5</MilesToDestination> <Network>sample string 4</Network> <State>sample string 11</State> <TerminalID>sample string 3</TerminalID> <UnitNumber>sample string 1</UnitNumber> </MCUnit> <MCUnit> <City>sample string 10</City> <CityCode>sample string 12</CityCode> <Description>sample string 2</Description> <GeotabDeviceId>sample string 13</GeotabDeviceId> <Latitude>7</Latitude> <LocationTimeStamp>2024-11-22T22:53:17.408098-06:00</LocationTimeStamp> <Longitude>8</Longitude> <MPHToETA>6</MPHToETA> <MilesToDestination>5</MilesToDestination> <Network>sample string 4</Network> <State>sample string 11</State> <TerminalID>sample string 3</TerminalID> <UnitNumber>sample string 1</UnitNumber> </MCUnit> </ArrayOfMCUnit>