get_qualocep_data()
retrieves a validated dataset of Qual o CEP from the
package's OSF repository.
Arguments
- file
(Optional) A
character
string with the path to a Qual o CEP dataset file. IfNULL
, the dataset will be downloaded from the package's OSF repository. (Default:NULL
).- pattern
(Optional) A
character
string with the pattern of the Qual o CEP dataset file to download. Click here to see the available patterns (Default:"2024-11-12.rds"
).- force
(Optional) A
logical
flag to force the download of the Qual o CEP dataset file. IfTRUE
, the dataset will be downloaded even if it already exists in the temporary directory (Default:FALSE
).
Value
A tibble
containing the Qual o CEP dataset with
the following columns:
postal_code
: Acharacter
vector with the postal codes.street_type
: Acharacter
vector with the type of streets.street_name
: Acharacter
vector with the name of the streets.street
: Acharacter
vector with the full name of the streets.complement
: Acharacter
vector with the complement of the addresses.place
: Acharacter
vector with the place of the addresses.neighborhood
: Acharacter
vector with the neighborhoodsmunicipality_code
: Aninteger
vector with the codes of the Brazilian Institute of Geography and Statistics (IBGE) for Brazilian municipalities.municipality
: Acharacter
vector with the name of the municipalities.state_code
: Aninteger
vector with the codes of the Brazilian Institute of Geography and Statistics (IBGE) for the Brazilian state.state
: Acharacter
vector with the name of the states.federal_unit
: Acharacter
vector with the abbreviations of the Brazilian federal unit.latitude
: Anumeric
vector with the latitude values of the postal codes (retrieved using Google Geocoding API).longitude
: Anumeric
vector with the longitude values of the postal codes (retrieved using Google Geocoding API).
Details
Qual o CEP is a database of Brazilian addresses and postal codes geocoded made using the Google Geocoding API.
Please note the year of the pattern. Some values could be
See also
Other API functions:
get_brazil_address_by_postal_code()