Normalizes city names for EEA countries and matches them to NUTS 3 regions using provided crosswalks. Features include comprehensive normalization rules, cascading matching logic (Exact NUTS -> Exact LAU -> Fuzzy), and single-source data synthesis. The package implements the NUTS classification as described in the NUTS methodology (Eurostat (2021) < https://ec.europa.eu/eurostat/web/nuts>).
placematchr is an R package designed to normalize city names and map them to standard NUTS 3 and LAU (Local Administrative Units) codes across 32 European countries.
It is widely used to harmonize messy geographical data (survey responses, address lists) with official regional identifiers for analysis.
library(placematchr)
# Match a single city in Germany
match_city("Munich", country = "DE")
# Returns data frame with NUTS_ID: DE212, Name: München, Landeshauptstadt
# Match a list of cities in Italy
cities <- c("Rome", "Milan", "Naples", "Venice")
match_city(cities, country = "IT")
# Input: "Garching b. München" (Suburb)
# Result: The suffix "b. München" is stripped. The base name "Garching" is matched against LAUs.
# Final Match: "Garching" (LAU). Mapped to Munich District (NUTS 3: DE21H), *not* Munich City (DE212).
match_city("Garching b. München", country = "DE")
# Input: "Champs-sur-Marne" (French Suburb)
# Result: Matches "Champs" (LAU).
match_city("Champs-sur-Marne", country = "FR")
BE, BG, CZ, DK, DE, EE, IE, EL, ES, FR, HR, IT, CY, LV, LT, LU, HU, MT, NL, AT, PL, PT, RO, SI, SK, FI, SE, LI, NO, CH, MK, TR, UK.
MIT