Skip to content

Commit

Permalink
fix support for Kosovo
Browse files Browse the repository at this point in the history
  • Loading branch information
giocomai committed Aug 3, 2023
1 parent 5ab84f8 commit 4cedcee
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions R/ll_get_lau_eu.R
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,14 @@ ll_osm_get_lau_streets <- function(gisco_id,
if (is.null(country)==FALSE) {
country_full_name <- country
} else {
country_full_name <- countrycode::countrycode(sourcevar = gisco_cc,
origin = country_code_type,
destination = "iso.name.en")
if (gisco_cc == "XK") {
country_full_name <- "Kosovo"
} else {
country_full_name <- countrycode::countrycode(sourcevar = gisco_cc,
origin = country_code_type,
destination = "iso.name.en")
}


if (country_full_name=="Czechia") {
country_full_name <- "czech-republic"
Expand Down

0 comments on commit 4cedcee

Please sign in to comment.