sgrRetornaRotaOriDest
Returns a list of the company's routes according to the origin and destination parameters.
PARAMETERS
| Field | Type | Required? | Description |
|---|---|---|---|
| keyaccess | string | Yes | Key returned by the sgrLogin method. |
| cdpas | integer | Yes | PAS code, returned by the sgrListPASUser method |
| cdcliente | integer | Yes | Customer code, returned by the sgrListaEmpresasPASUsuario method. |
| cdcidorigem | integer | Yes | Origin city code, returned by the sgrListCities method. |
| cdciddestination | integer | Yes | Destination city code, returned by the sgrListCities method. |
METHOD RETURN:
ReturnDataset: If the parameters are correct, the property will display:
| Field | Type | Description |
|---|---|---|
| CDROTA | integer | Route code |
| DSROTA | string | Route Description |
ReturnDescription: If there is an error when executing the method, the property will display:
| Error | Description |
|---|---|
| There are no routes with the given parameter! |