openstreetmap/iD — pull request #2246 by cschwarz (2014-06-03 21:40:51+00:00)
Title: Added support for localization of address fields

Supports different address formats via country code (works similar to imperial units for maxspeed fields)

More countries can be easily added via geojson.io (e.g.: with the poly files found at http://download.geofabrik.de).

An alternative way to get the country code for a location would be a thirdparty service like nominatim or geonames (drawback - server load and latency).