Skip to contents

Queries the COD API sever to return admin2 geometry and pcode for a specific country based on iso name. As the resulting data is expected to be used in a shinyApp, the geomtry is simplified

Usage

f_get_admin2_cod(ISO3, simplify = TRUE, dTolerance = 500)

Arguments

ISO3

ISO3 code of country

simplify

Logical: whether to simplify or not

dTolerance

parameter passed to sf::st_simplify()

Value

sf object

Examples

#GTM <- f_get_admin2_cod("GTM", simplify = TRUE, dTolerance = 500)