sgrRetornaUltimaPosicaoVeiculo
Indicates the last position of the 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). |
METHOD RETURN:
ReturnDataset: If the parameters are correct, the property will display
Field | Type | Description |
---|---|---|
NRPLACA | char(7) | Vehicle license plate |
DTPOSICAO | datetime | Date of last position |
VLLAT | real | Latitude of position |
VLLONG | real | Longitude of position |
ReturnDescription: If there is an error executing the method, the property will display:
Error | Description |
---|---|
There was an error searching the positions. This error may be caused by an incorrect parameter, the field to be corrected will be indicated in the returnDataset property. | This means you need to check the parameters and run the method again. It may also indicate a timeout or a dropped connection to the database. It is necessary to pass on the data entered, as well as the method name, issue time and customer code to the following e-mail address: [email protected] so that the error can be validated. |
No positions were found for the license plate and period entered. |