Skip to main content

sgrRetornaPosicaoVeiculo

Returns vehicle positions.

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListPASUser method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method.
datedatetimeYesDate for search.
nrplatestringNoVehicle plate, in the format (7 characters).

METHOD RETURN:

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

FieldTypeDescription
DTPOSdatetimePosition date
VLLATrealLatitude of position
VLLONGrealLongitude of position
VLVELOCITYrealPosition speed
CDVIAGintegerShipment authorization number
CDROTAintegerRoute code

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

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