Skip to main content

sgrListaCidadesRota

Returns a list of cities on a route.

SoapAction

PARAMETERS

FieldTypeReq.?Description
chaveacessostringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesClient code, returned by the sgrListaEmpresasPASUsuario method.
cdrotaintegerYesRoute Code. This code is returned by the sgrListaRotas method.

METHOD RETURN:

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

FieldTypeDescription
CDSEQsmallintCity sequence
CDROTAintegerRoute code
DSROTAstringRoute name
CDCIDORIintegerOrigin city code
CDCIDDESTintegerDestination city code
DSCIDADEORIstringOrigin city name
DSUFORIchar(2)Origin state (acronym)
DSPAISORIstringOrigin country
DSCIDADEDESstringDestination city name
DSUFDESTchar(2)Destination state (acronym)
DSPAISDESstringDestination country
CDIBGEORIGintegerIBGE code of the origin city
CDIBGEDESTintegerIBGE code of the destination city

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

ErrorDescription
The requested route does not exist, is not linked to the company or does not have any sections!It was not possible to find sections with the route code provided. You must check whether the parameters provided are correct and then run the method again.