Reference for https://api.silentpassenger.com/rest/v2/{APIKEY}/Fleet?userid={USERID}&p={PAGENUMBER}&s={PAGESIZE}&o={ORDERBY}&d={ORDERDIRECTION}&f={PREFIX}
Get list of vehicles that are in the user's subgroup and user has chosen to view. The returned dataset contains lighter version of vehicle information.
Url: https://api.silentpassenger.com/rest/v2/{APIKEY}/Fleet?userid={USERID}&p={PAGENUMBER}&s={PAGESIZE}&o={ORDERBY}&d={ORDERDIRECTION}&f={PREFIX}
HTTP Method: GET
| Message direction | Format | Body |
|---|---|---|
| Request | N/A | The Request body is empty. |
| Response | Xml | Example,Schema |
| Response | Json | Example |
The following is an example response Xml body:
<DCFleetStatus xmlns="http://schemas.datacontract.org/2004/07/VTS.API.DataContracts">
<RecordCount>2147483647</RecordCount>
<Vehicles>
<DCLightVehicle>
<AssignTime>1999-05-31T11:20:00</AssignTime>
<City>String content</City>
<CumHours>1.26743237E+15</CumHours>
<DriverName>String content</DriverName>
<GroupName>String content</GroupName>
<Heading>1.26743233E+15</Heading>
<IO4Flip>true</IO4Flip>
<IdleDuration>String content</IdleDuration>
<In1Flip>true</In1Flip>
<In2Flip>true</In2Flip>
<In3Flip>true</In3Flip>
<Latitude>1.26743233E+15</Latitude>
<Longitude>1.26743233E+15</Longitude>
<MobileGroupID>2147483647</MobileGroupID>
<Odometer>1.26743237E+15</Odometer>
<PlateNumber>String content</PlateNumber>
<ReadingTime>1999-05-31T11:20:00</ReadingTime>
<Speed>1.26743233E+15</Speed>
<StartOfStopTime>1999-05-31T11:20:00</StartOfStopTime>
<State>String content</State>
<StatusID>2147483647</StatusID>
<StopDuration>String content</StopDuration>
<Street>String content</Street>
<SubGroupID>2147483647</SubGroupID>
<SubGroupName>String content</SubGroupName>
<TripOdometer>1.26743237E+15</TripOdometer>
<VehicleID>2147483647</VehicleID>
<VehicleName>String content</VehicleName>
<Zip>String content</Zip>
<notes>String content</notes>
<vin>String content</vin>
</DCLightVehicle>
<DCLightVehicle>
<AssignTime>1999-05-31T11:20:00</AssignTime>
<City>String content</City>
<CumHours>1.26743237E+15</CumHours>
<DriverName>String content</DriverName>
<GroupName>String content</GroupName>
<Heading>1.26743233E+15</Heading>
<IO4Flip>true</IO4Flip>
<IdleDuration>String content</IdleDuration>
<In1Flip>true</In1Flip>
<In2Flip>true</In2Flip>
<In3Flip>true</In3Flip>
<Latitude>1.26743233E+15</Latitude>
<Longitude>1.26743233E+15</Longitude>
<MobileGroupID>2147483647</MobileGroupID>
<Odometer>1.26743237E+15</Odometer>
<PlateNumber>String content</PlateNumber>
<ReadingTime>1999-05-31T11:20:00</ReadingTime>
<Speed>1.26743233E+15</Speed>
<StartOfStopTime>1999-05-31T11:20:00</StartOfStopTime>
<State>String content</State>
<StatusID>2147483647</StatusID>
<StopDuration>String content</StopDuration>
<Street>String content</Street>
<SubGroupID>2147483647</SubGroupID>
<SubGroupName>String content</SubGroupName>
<TripOdometer>1.26743237E+15</TripOdometer>
<VehicleID>2147483647</VehicleID>
<VehicleName>String content</VehicleName>
<Zip>String content</Zip>
<notes>String content</notes>
<vin>String content</vin>
</DCLightVehicle>
</Vehicles>
</DCFleetStatus>
The following is an example response Json body:
{
"RecordCount":2147483647,
"Vehicles":[{
"AssignTime":"\/Date(928164000000-0400)\/",
"City":"String content",
"CumHours":1.26743237E+15,
"DriverName":"String content",
"GroupName":"String content",
"Heading":1.26743233E+15,
"IO4Flip":true,
"IdleDuration":"String content",
"In1Flip":true,
"In2Flip":true,
"In3Flip":true,
"Latitude":1.26743233E+15,
"Longitude":1.26743233E+15,
"MobileGroupID":2147483647,
"Odometer":1.26743237E+15,
"PlateNumber":"String content",
"ReadingTime":"\/Date(928164000000-0400)\/",
"Speed":1.26743233E+15,
"StartOfStopTime":"\/Date(928164000000-0400)\/",
"State":"String content",
"StatusID":2147483647,
"StopDuration":"String content",
"Street":"String content",
"SubGroupID":2147483647,
"SubGroupName":"String content",
"TripOdometer":1.26743237E+15,
"VehicleID":2147483647,
"VehicleName":"String content",
"Zip":"String content",
"notes":"String content",
"vin":"String content"
}]
}
The following is the response Xml Schema:
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/VTS.API.DataContracts" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/VTS.API.DataContracts" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://schemas.datacontract.org/2004/07/VTS.API" />
<xs:complexType name="DCFleetStatus">
<xs:sequence>
<xs:element minOccurs="0" name="RecordCount" type="xs:int" />
<xs:element minOccurs="0" name="Vehicles" nillable="true" type="tns:ArrayOfDCLightVehicle" />
</xs:sequence>
</xs:complexType>
<xs:element name="DCFleetStatus" nillable="true" type="tns:DCFleetStatus" />
<xs:complexType name="ArrayOfDCLightVehicle">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="DCLightVehicle" nillable="true" type="tns:DCLightVehicle" />
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfDCLightVehicle" nillable="true" type="tns:ArrayOfDCLightVehicle" />
<xs:complexType name="DCLightVehicle">
<xs:complexContent mixed="false">
<xs:extension xmlns:q1="http://schemas.datacontract.org/2004/07/VTS.API" base="q1:DataContractBase">
<xs:sequence>
<xs:element minOccurs="0" name="AssignTime" type="xs:dateTime" />
<xs:element minOccurs="0" name="City" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="CumHours" type="xs:float" />
<xs:element minOccurs="0" name="DriverName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="GroupName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Heading" type="xs:double" />
<xs:element minOccurs="0" name="IO4Flip" type="xs:boolean" />
<xs:element minOccurs="0" name="IdleDuration" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="In1Flip" type="xs:boolean" />
<xs:element minOccurs="0" name="In2Flip" type="xs:boolean" />
<xs:element minOccurs="0" name="In3Flip" type="xs:boolean" />
<xs:element minOccurs="0" name="Latitude" type="xs:double" />
<xs:element minOccurs="0" name="Longitude" type="xs:double" />
<xs:element minOccurs="0" name="MobileGroupID" type="xs:int" />
<xs:element minOccurs="0" name="Odometer" type="xs:float" />
<xs:element minOccurs="0" name="PlateNumber" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="ReadingTime" type="xs:dateTime" />
<xs:element minOccurs="0" name="Speed" type="xs:double" />
<xs:element minOccurs="0" name="StartOfStopTime" type="xs:dateTime" />
<xs:element minOccurs="0" name="State" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="StatusID" type="xs:int" />
<xs:element minOccurs="0" name="StopDuration" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Street" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="SubGroupID" type="xs:int" />
<xs:element minOccurs="0" name="SubGroupName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="TripOdometer" type="xs:float" />
<xs:element minOccurs="0" name="VehicleID" type="xs:int" />
<xs:element minOccurs="0" name="VehicleName" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="Zip" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="notes" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="vin" nillable="true" type="xs:string" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="DCLightVehicle" nillable="true" type="tns:DCLightVehicle" />
</xs:schema>
Additional response Xml Schemas:
<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="anyType" nillable="true" type="xs:anyType" />
<xs:element name="anyURI" nillable="true" type="xs:anyURI" />
<xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
<xs:element name="boolean" nillable="true" type="xs:boolean" />
<xs:element name="byte" nillable="true" type="xs:byte" />
<xs:element name="dateTime" nillable="true" type="xs:dateTime" />
<xs:element name="decimal" nillable="true" type="xs:decimal" />
<xs:element name="double" nillable="true" type="xs:double" />
<xs:element name="float" nillable="true" type="xs:float" />
<xs:element name="int" nillable="true" type="xs:int" />
<xs:element name="long" nillable="true" type="xs:long" />
<xs:element name="QName" nillable="true" type="xs:QName" />
<xs:element name="short" nillable="true" type="xs:short" />
<xs:element name="string" nillable="true" type="xs:string" />
<xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
<xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
<xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
<xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
<xs:element name="char" nillable="true" type="tns:char" />
<xs:simpleType name="char">
<xs:restriction base="xs:int" />
</xs:simpleType>
<xs:element name="duration" nillable="true" type="tns:duration" />
<xs:simpleType name="duration">
<xs:restriction base="xs:duration">
<xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
<xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
<xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
</xs:restriction>
</xs:simpleType>
<xs:element name="guid" nillable="true" type="tns:guid" />
<xs:simpleType name="guid">
<xs:restriction base="xs:string">
<xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
</xs:restriction>
</xs:simpleType>
<xs:attribute name="FactoryType" type="xs:QName" />
<xs:attribute name="Id" type="xs:ID" />
<xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/VTS.API" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/VTS.API" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="DataContractBase">
<xs:sequence />
</xs:complexType>
<xs:element name="DataContractBase" nillable="true" type="tns:DataContractBase" />
</xs:schema>
<tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema">
<tns:element name="schema">
<tns:complexType />
</tns:element>
</tns:schema>