Key:addr:country

From OpenStreetMap Wiki
Jump to navigation Jump to search
addr:country
Description
The country code of the current address. Show/edit corresponding data item.
Group: addresses
Used on these elements
may be used on nodesmay be used on waysmay be used on areas (and multipolygon relations)use on relations unspecified
Documented values: 83
Status: de facto

The country code of the current address. Note that it can be derived in most cases from mapped boundaries of countries.

Use the ISO 3166-1 alpha-2 two letter country code in upper case.

Example: "GB" for the United Kingdom (not "UK"!), "DE" for Germany, "CH" for Switzerland, "AT" for Austria, "FR" for France, "IT" for Italy.

Note: "XK" is sometimes used for Kosovo, "AB" for Abkhazia

See Also

Possible tagging errors

Spelled out country names

Samples, possibly resolved since:

  • addr:country=France🔎 ‒ use "FR"
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!
  • addr:country=Brasil🔎 ‒ use "BR"
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!
  • addr:country=Deutschland🔎 ‒ use "DE"
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!
  • addr:country=India🔎 ‒ use "IN"
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!

Invalid codes

Counts are regularly updated, please add more invalid ones:

  • addr:country=BC🔎 ‒ maybe "CA" if British Columbia in Canada
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!
  • addr:country=ED🔎
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!
  • addr:country=FL🔎 ‒ maybe "LI" for Liechtenstein
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!
  • addr:country=JA🔎 ‒ maybe "JP" for Japan, "JM" for Jamaica
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!
  • addr:country=KO🔎
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!
  • addr:country=LH🔎
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!
  • addr:country=MI🔎
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!

Values incoherent with the country

Two Overpass requests to find values that are not coherent with the country:

Replace "Liechtenstein" and "LI" with the pair you want to check.

Both can bring correctly tagged features across national borders.


try it yourself in overpass-turbo
try it yourself in overpass-turbo
[out:json][timeout:100];
// Other than "LI" in Liechtenstein (none in March 2026)
{{geocodeArea:Liechtenstein}}->.searchArea;
(
  nwr["addr:country"]["addr:country"!="LI"](area.searchArea);
);
out meta geom;


try it yourself in overpass-turbo
try it yourself in overpass-turbo
[out:json][timeout:100];
// "LI" outside Liechtenstein (none in March 2026)
{{geocodeArea:Liechtenstein}}->.searchArea;
(
  nwr["addr:country"="LI"];
  -
  nwr["addr:country"="LI"](area.searchArea);
);
out meta geom;


Values that should use another key

Samples (remove when resolved or keep in mind when checking taginfo):

  • addr:country=Fornoli🔎 ‒ maybe "addr:city"?
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!
  • addr:country=11-042🔎 ‒ maybe "addr:postcode"?
If you know places with this tag, verify if it could be tagged with another tag.
Automated edits are strongly discouraged unless you really know what you are doing!