Nominatim/Country Address Format

From OpenStreetMap Wiki
Jump to: navigation, search

The list of types is completely freestyle - but please don't use one that already exists. If you want to create a new format that isn't covered by these types create a new type and add it to the list with a description.

Format Type Descriptions
standard The normal address format used in the country
short An abbreviated format
minimal The shortest usable format

List of patterns in preference order. Address generation will use the first pattern for which it is able to fill in all tags. You can also use {*format_type*} to include another format, either by itself or as part of a pattern.

ISO Country Code Format Type Pattern
gb house_number {housename}, {housenumber}
gb house_number {housename},
gb house_number {housenumber}
gb small_place {village}
gb small_place {town}
gb small_place {suburb}
gb standard_street {street}, {*small_place*}, {city}, {postalcode}
gb standard_street {street}, {*small_place*}, {city}
gb standard_street {street}, {city}
gb standard_place {*small_place*}, {city}
gb standard_place {city}
gb standard {*house*} {*standard_street*}
gb standard {*housename*}, {*small_place*}, {city}
gb standard {*standard_street*}
gb standard {*standard_place*}
gb standard {city}
gb short {*standard*}
gb minimal {*house_number*}, {postalcode}
gb minimal {postalcode}
gb minimal {street}, {village}
gb minimal {street}, {town}
gb minimal {street}, {city}
gb minimal {village}, {city}
gb minimal {town}
gb minimal {city}
de place {city}
de place {town}
de place {village}
de street_name {street} {house_number}
de street_name {street}
de standard {*street_name*}, {postalcode} {*place*}
de short {*standard*}
de short {*street_name*}, {*place*}
de minimal {*street*}, {*place*}
de minimal {*place*}
ch place {city}
ch place {town}
ch place {village}
ch full_place {*place*}
ch full_place {*place*} {admin_level=4:ref}
ch street_name {street} {house_number}
ch street_name {street}
ch standard {*street_name*}, {postalcode} {*full_place*}
ch short {*standard*}
ch short {*street_name*}, {*full_place*}
ch minimal {*street*}, {*full_place*}
ch minimal {*full_place*}
pt standard {housename}, {street}, {housenumber}, {postalcode}, {city}