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: 106
Useful combination
See also
Status: de facto

The country code of the current address. In general, the country can be inferred from the location of the feature within the country's boundary relation.

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.

The tag can be applied to any address (on building ways or address nodes of buildings) or mainly POIs (with amenity tags).

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

In OSM, such tagging is rare in countries with no direct neighbors (US, AU).

Where to use

For postal addresses, this key is necessary in cases such as:

  • The mailing address requires the inclusion of the country name even when sending domestically (does this ever happen?)
  • The address lies in an area disputed between two countries
  • The feature falls in two different countries but primarily receives mail via one country's postal service, such as the Haskell Free Library & Opera House
  • The address falls outside of any country, such as McMurdo Post Office, which is located on Antarctica and served by the United States Postal Service
  • The standard mailing address format includes it

This key is usually omitted because the name of the country is only required in an international postal address but not when sending domestically. Nevertheless, this key often occurs in more straightforward cases for completeness' sake.

See also


Possible tagging errors

Spelled out country names

Samples, possibly resolved since:

  • addr:country=Albania🔎 ‒ use "AL"
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=Беларусь🔎 ‒ use "BY"
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=Germany🔎 ‒ 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=Estonia🔎 ‒ use "EE"
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=España🔎 ‒ use "ES"
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=Fiji🔎 ‒ use "FJ"
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=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=Magyarország🔎 ‒ use "HU"
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!
  • 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!
  • addr:country=United States🔎 ‒ use "US"
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=De🔎 ‒ 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=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!
  • addr:country=USA🔎 ‒ use "US"
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!