Returns the municipalities as identified by the MI Social API, with the 6-digit code the API uses and the official 7-digit IBGE code. The list is read from one month (by default December of the last closed year), paged and checked for completeness; it is cached for the session.
Arguments
- state
Optional state abbreviations (e.g.
"PE") or 2-digit IBGE state codes (e.g.26).NULL(default) returns all of Brazil.- period
Month (
YYYYMM) the list is read from.NULL(default) uses December of the last closed year. The territorial division of that month is what is returned.- refresh
Logical. Ignore the cached list and ask the API again? Default
FALSE.