Skip to main content
Omnitracs Knowledge Base

Vehicle->Get

Get (Vehicle Function)

This function returns a Vehicle object with vehicle properties for the specified vehicle ID.

XML Request

Definitions

  • null fields are the fields that are either omitted or initialized to a special value - string "NULL".
    • E.g., <Street>NULL<Street/> will be interpreted as a null field.
  • Empty string fields are, e.g., <Street /> or <Street></Street>

The Update function takes the following request parameters:

Parameter Type Optional Description
VehicleID Short No The vehicle ID whose data should be returned

XML Structure

  
<soap:Body>  
    <Get xmlns="http://www.qualcomm.com">  
      <request>  
        <VehicleID>string</VehicleID>  
      </request>  
    </Get>  
</soap:Body>  
		

XML Response

Parameters

The web service method provides the following information in the response document.

Parameter Type Optional Description
VehicleID Short No The Vehicle ID
UA Int Yes The UA (MCT) assigned to the tractor. If the vehicle does not have a UA, then this field will not be present
Alias String Yes An alias for the vehicle
DepotId Short No The ID for the depot that this vehicle is assigned to
PlateNumber String Yes The license plate number for the vehicle
VehicleGroups Array of Strings No The HOS vehicle groups that this vehicle belongs to. Each will have the tag name <GroupName>. list could be empty

XML Structure

The XML response will have the following parameters:

  
<soap:Body>  
    <GetResponse xmlns="http://www.qualcomm.com">  
      <GetResult>  
        <Vehicle>  
          <VehicleID>string</VehicleID>  
          <UA>int</UA>  
          <Alias>string</Alias>  
          <DepotId>short</DepotId>  
          <PlateNumber>string</PlateNumber>  
          <VehicleGroups>  
            <GroupName>string</GroupName>  
            <GroupName>string</GroupName>  
          </VehicleGroups>  
        </Vehicle>  
      </GetResult>  
    </GetResponse>  
</soap:Body>  
		
  • Was this article helpful?