Skip to contents

Retrieves basic information about all cities in Colombia from the API Colombia. This function fetches only the city ID and name to provide a clean and concise dataset.

Usage

get_colombia_cities()

Value

A tibble with two columns: id and name, or NULL if the API is unavailable.

Examples

# \donttest{
cities <- get_colombia_cities()
print(cities)
#> # A tibble: 1,123 × 2
#>       id name          
#>    <int> <chr>         
#>  1    87 Puerto Nare   
#>  2    88 Puerto Triunfo
#>  3    89 Remedios      
#>  4    90 Retiro        
#>  5    91 Rionegro      
#>  6    92 Sabanalarga   
#>  7    93 Sabaneta      
#>  8    94 Salgar        
#>  9    95 San Francisco 
#> 10    96 San Jerónimo  
#> # ℹ 1,113 more rows
# }