sgrRetornaPosicaoVeiculo
Returns vehicle positions.
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. |
date | datetime | Yes | Date for search. |
nrplate | string | No | Vehicle plate, in the format (7 characters). |
METHOD RETURN:
ReturnDataset: If the parameters are correct, the property will display:
Field | Type | Description |
---|---|---|
DTPOS | datetime | Position date |
VLLAT | real | Latitude of position |
VLLONG | real | Longitude of position |
VLVELOCITY | real | Position speed |
CDVIAG | integer | Shipment authorization number |
CDROTA | integer | Route code |
ReturnDescription: If there is an error when executing the method, the property will display:
Error | Description |
---|---|
The date entered is more than 24 hours less than the current date. | A date up to 24 hours less than the current date must be entered. |
There was an error searching for 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. |