sgrListaCidadesRota
Returns a list of cities on a route.
PARAMETERS
Field | Type | Req.? | Description |
---|---|---|---|
chaveacesso | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListaPASUsuario method |
cdcliente | integer | Yes | Client code, returned by the sgrListaEmpresasPASUsuario method. |
cdrota | integer | Yes | Route Code. This code is returned by the sgrListaRotas method. |
METHOD RETURN:
ReturnDataset: If the parameters are correct, the dataset will display:
Field | Type | Description |
---|---|---|
CDSEQ | smallint | City sequence |
CDROTA | integer | Route code |
DSROTA | string | Route name |
CDCIDORI | integer | Origin city code |
CDCIDDEST | integer | Destination city code |
DSCIDADEORI | string | Origin city name |
DSUFORI | char(2) | Origin state (acronym) |
DSPAISORI | string | Origin country |
DSCIDADEDES | string | Destination city name |
DSUFDEST | char(2) | Destination state (acronym) |
DSPAISDES | string | Destination country |
CDIBGEORIG | integer | IBGE code of the origin city |
CDIBGEDEST | integer | IBGE code of the destination city |
ReturnDescription: If there is an error executing the method, the property will display:
Error | Description |
---|---|
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. |