sgrVerificaViagemVeiculo
Check if there are any open AE's for the vehicle.
PARAMETERS
Field | Type | Required? | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
nrplaca | string | Yes | Vehicle license plate number (7 characters). |
METHOD RETURN:
If the access key entered is valid and there is a trip associated with the vehicle, the ReturnDataset property of the sgrData object will display:
Field | Type | Description |
---|---|---|
CDVIAG | integer | Boarding authorization number |
FLSITUATION | smallint | Indicates the status of the trip |
DSSITUATION | string | Situation |
ReturnDescription: If there is an error when executing the method, the property will display:
Error | Description |
---|---|
There is no open trip for this vehicle. |