Skip to main content

sgrRetornaUltimaPosicaoVeiculo

Indicates the last position of the vehicle.

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListPASUser method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method.
nrplacastringYesVehicle license plate, in the format (7 characters).

METHOD RETURN:

ReturnDataset: If the parameters are correct, the property will display

FieldTypeDescription
NRPLACAchar(7)Vehicle license plate
DTPOSICAOdatetimeDate of last position
VLLATrealLatitude of position
VLLONGrealLongitude of position

ReturnDescription: If there is an error executing the method, the property will display:

ErrorDescription
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.