Recent site activity

RUC

Fetching RUC Licences

Syntax

GET /cs/ruc_licences.xml?[parameters]

Input

Name Format Example
asset_id
The unique id of the vehicle (optional) asset_id=3

Output

 NameDescription 
ruc_licence_number
ruc_licence_date
asset_id
The internal unique identifier of the vehicle that the licence belongs too
hubodometer_id
The internal unique identifier of the hubodometer
hubodometer_number
The external unique identifier of the hubodometer
start_km

end_km
max_tonnage

ruc_licence_vehicle_type
 
status
The  status of the licence. Values are:
 - consumed, the licence is consumed and this has been confirmed by a hubodometer reading
 - consumed (virtual), the licence is probably consumed, but it hasn't been confirmed by a hubodometer reading yet
 - active, the licence is currently in use
 - pending, the licence has yet to be used

Example
GET http://demo.visfleet.com/cs/ruc_licences.xml
<ruc_licences delta_mode="new" effective_at="2009-06-26T01:24:00.157092Z">
<ruc_licence>
<id>46</id>
<ruc_licence_number>308569600</ruc_licence_number>
<ruc_licence_date>2008-10-22T23:51:13Z</ruc_licence_date>
<asset_id>3</asset_id>
<hubodometer_id>43</hubodometer_id>
<hubodometer_number>2/345472</hubodometer_number>
<start_km>96000</start_km>
<end_km>101000</end_km>
<max_tonnage>14</max_tonnage>
<ruc_licence_vehicle_type>2</ruc_licence_vehicle_type>
<status>Consumed</status>
</ruc_licence>
...
</ruc_licences>

Fetching Hubodometer Readings

Syntax

GET /cs/hubodometer_readings.xml?[parameters]

Input

Name Format Example
asset_id
The unique id of the vehicle (optional) asset_id=3

Output

 NameDescription 
asset_idThe internal unique identifier of the vehicle that the licence belongs too.
hubodometer_idThe internal unique identifier of the hubodometer
hubodometre_numberThe external unique identifier of the hubodometer
effective_at
The date/time the reading was taken. The date is in ISO8601 format
reading_km
The actual hubodometer reading
virtual_hubo_km
The predicted hubodometer reading based on the GPS data.

Example

GET http://demo.visfleet.com/cs/hubodometer_readings.xml

<hubodometer_reading>
  <hubodometer_reading>
    <id>1109</id>
    <asset_id>97</asset_id>
    <hubodometer_id>60</hubodometer_id>
    <hubodometer_number>2/515105</hubodometer_number>
    <effective_at>2009-06-24T20:00:00Z</effective_at>
    <reading_km>146719.0</reading_km>
    <virtual_hubo_km>145192.5</virtual_hubo_km>
  </hubodometer_reading>
  ...
<hubodometer_readings>