Skip to main content

sgrRetornaJornadaMotorista

Returns the driver's journey data.

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdPASintegerYesPAS code, returned by the sgrListPASUser method
cdCliintegerYesCustomer code, returned by the sgrListCompaniesPASUser method.
cdViagintegeroptionalBoarding authorization number. If a trip is entered, the method searches without considering the filter date.
nrdocDriverstringDriver's document number.
nameDriverstringDriver's name.
cdCountryOriginMotstringDriver's country of origin code. This code is returned by the sgrListCountries method.
dtStartdatetimeYesStart date for the search.
dtEnddatetimeYesEnd date for the search.

METHOD RETURN:

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

FieldTypeDescription
IDJOURNEDAYintegerJourney identifier
CDDRIVER'S WORKDAYintegerDriver's workday code
MOTORISTstringDriver's name
CDEVENTDRIVERWORKDAYtinyintEvent code
DSEVENTODAYDRIVERstringEvent description
DTEVENTOdatetimeEvent date
NRPLACAchar(8)Vehicle license plate
CDVIAGintegerBoarding authorization number
TIMEstringEvent duration (in hours)
VLTEMPOintegerEvent duration (in minutes)
FLALTEREDstringIndicates change in event
DSREFERENCEstringReference point
DSOBSERVACAOstringRemarks about the event
VLTEMPOVIAGstringTravel time
VLTEMPOTOTALstringTotal time
VLTEMPOTOTALNOTFORMATTEDstringTotal time not formatted
VLTEMPOTOTVIAGNAOFORMATADOstringTotal unformatted travel time
VLTEMPOOTJOURNADANAOFORMATADOstringTotal unformatted journey time
VLTEMPOESPERAstringWaiting time
VLTEMPOREPOUSOstringResting time
VLTEMPOMOVstringTime in motion

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

ErrorDescription
Period entered greater than 31 daysYou need to enter a shorter interval between the start and end dates.
The query did not return data with the parameters entered!