Skip to main content

sgrProcuraCidade

Lists the cities registered according to the search parameters.

SoapAction

PARAMETERS

FieldTypeReq.Description
keyaccessstringYesKey returned by the sgrLogin method.
typesearchstringYesEnter 'N' to search by city name, or 'C' to query a code.
parametrostringNoParameter used in the search. If searching by name (typesearch = n), and the parameter is null, it lists all cities. Passing the parameter is mandatory when searching by code (typesearch = c).

METHOD RETURN:

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

FieldTypeDescription
CDCIDintegerCity Code
DSCITYstringCity Name
DSUFstringState Acronym
CDPAISintegerCountry Code
DSPAISstringCountry Name
CDIBGEintegerCity IBGE code

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

ErrorDescription
Invalid parameter type:must be 'C' to search by code, or 'N' by name.
There are no cities with the parameter entered!