sgrRetornaPosicaoFrota
Returns the Fleet position.
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. |
| dtposicao | datetime | Yes | Date for search. |
| currentposition | integer | Yes | Send 1 to return the vehicle's current position, or 0 to keep the filter date (dtposition). |
METHOD RETURN:
ReturnDataset: If the parameters are correct, the property will display:
| Field | Type | Description |
|---|---|---|
| NRPLACACAVALO | char(7) | License plate |
| CDVIAG | integer | Boarding authorization number |
| FLEET | string | Vehicle fleet code |
| DTPOSICAO | datetime | Position date |
| POSICAO | string | Vehicle position |
| VLLAT | real | Latitude of registered position |
| VLLONG | real | Longitude of registered position |