Skip to main content
Omnitracs Knowledge Base

Vehicle->VehicleOdometers

VehicleOdometers (Vehicle Function)

This function returns the beginning and ending odometer readings to the nearest tenth of a mile for vehicles in use at a specified depot and date. This function is only enabled for tractors using Qualcomm transportation services.

XML Request

The VehicleOdometers function takes two parameters.

Parameter Type Description
Depot Integer An integer identifying the depot to which a vehicle belongs
Date dateTime The time (expressed as the local time at the vehicle's depot) for which the odometer information is requested
  
<soap:Body>  
    <VehicleOdometers xmlns="http://www.qualcomm.com">  
        <request>  
            <Depot>int</Depot>  
            <Date>dateTime</Date>  
        </request>  
    </VehicleOdometers>  
</soap:Body>  

XML Response

The VehicleOdometers function returns the following values:

Parameter Type Description
VehicleCount Integer The number of vehicles at the requested depot
TimeZone String The time zone of the requested depot
Tractors Array An array of tractor IDs and associated odometer data
TractorId String The tractor currently assigned to that driver
StartOdometer Integer The starting odometer reading, to the nearest tenth of a mile
EndOdometer Integer The ending odometer reading, to the nearest tenth of a mile
  
<soap:Body>  
    <VehicleOdometersResponse xmlns="http://www.qualcomm.com">  
        <VehicleOdometersResult>  
            <VehicleCount>int</VehicleCount>  
            <TimeZone>string</TimeZone>  
            <Tractors>  
                <VehicleOdometersData>  
                    <TractorId>string</TractorId>  
                    <StartOdometer>int</StartOdometer>  
                    <EndOdometer>int</EndOdometer>  
                </VehicleOdometersData>  
                <VehicleOdometersData>  
                    <TractorId>string</TractorId>  
                    <StartOdometer>int</StartOdometer>  
                    <EndOdometer>int</EndOdometer>  
                </VehicleOdometersData>  
            </Tractors>  
        </VehicleOdometersResult>  
    </VehicleOdometersResponse>  
</soap:Body>  
  • Was this article helpful?