sgrRetornaQuilometragemVeiculo
Returns the mileage traveled by a vehicle
PARAMETERS
| Field | Type | Required? | Description |
|---|---|---|---|
| keyaccess | string | Yes | Key returned by the sgrLogin method. |
| cdpas | integer | Yes | PAS code, returned by the sgrListPASUser method |
| cdcliente | integer | Yes | Customer code, returned by the sgrListaEmpresasPASUsuario method. |
| nrplaca | string | Yes | Vehicle license plate, in the format (7 characters). |
| dtini | datetime | Yes | Start date for the search. |
| dtfim | datetime | Yes | End date for the search. |
METHOD RETURN:
ReturnDataset: If the parameters are correct, the property will display:
| Field | Type | Description |
|---|---|---|
| TRAVEL | string | Boarding authorization number |
| VLKMPERCORRIDO | real | Mileage traveled (in meters) on the trip by the vehicle entered. If there is a change of horse during the trip, in order to obtain the total mileage covered during the trip, the amount calculated for each of them must be added together. |