X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/200eae3bc0b559e7df7c1d1fb50141830c2f1849..9cf5970e22fdbb3ada2329b8b4a79cae018031fe:/docs/customize/Import-Styles.md diff --git a/docs/customize/Import-Styles.md b/docs/customize/Import-Styles.md index 6085d4e4..003e56e3 100644 --- a/docs/customize/Import-Styles.md +++ b/docs/customize/Import-Styles.md @@ -127,7 +127,7 @@ to the user when requested, but are not used otherwise. values. Tags with matching key/value pairs are deleted. * __extra_keys__ is a _key match list_ for tags which should be saved into extratags -* __delete_tags__ contains a table of tag keys pointing to a list of tag +* __extra_tags__ contains a table of tag keys pointing to a list of tag values. Tags with matching key/value pairs are moved to extratags. Key list may contain three kinds of strings: @@ -191,16 +191,16 @@ They take _key match lists_ for main and extra names respectively. Address tags will be used to build up the address of an object. `set_address_tags()` takes a table with arbitrary fields pointing to -_key match lists_. To fields have a special meaning: +_key match lists_. Two fields have a special meaning: -__main__ defines +* __main__: defines the tags that make a full address object out of the OSM object. This is usually the housenumber or variants thereof. If a main address tag appears, then the object will always be included, if necessary with a fallback of `place=house`. If the key has a prefix of `addr:` or `is_in:` this will be stripped. -__extra__ defines all supplementary tags for addresses, tags like `addr:street`, `addr:city` etc. If the key has a prefix of `addr:` or `is_in:` this will be stripped. +* __extra__: defines all supplementary tags for addresses, tags like `addr:street`, `addr:city` etc. If the key has a prefix of `addr:` or `is_in:` this will be stripped. All other fields will be handled as summary fields. If a key matches the key match list, then its value will be added to the address tags with the @@ -218,7 +218,7 @@ are accepted, all other values are discarded. main = {'addr:housenumber'}, extra = {'addr:*'}, postcode = {'postal_code', 'postcode', 'addr:postcode'}, - country = {'country-code', 'ISO3166-1'} + country = {'country_code', 'ISO3166-1'} } ``` @@ -227,7 +227,7 @@ are accepted, all other values are discarded. object will fall back to be entered as a `place=house` in the database unless there is another interested main tag to be found. - Tags with keys `country-code` and `ISO3166-1` are saved with their + Tags with keys `country_code` and `ISO3166-1` are saved with their value under `country` in the address tag list. The same thing happens to postcodes, they will always be saved under the key `postcode` thus normalizing the multitude of keys that are used in the OSM database. @@ -280,7 +280,7 @@ kinds of geometries can be used: * __relation_as_multipolygon__ creates a (Multi)Polygon from the ways in the relation. If the ways do not form a valid area, then the object is silently discarded. -* __relation_as_multiline__ creates a (Mutli)LineString from the ways in +* __relation_as_multiline__ creates a (Multi)LineString from the ways in the relations. Ways are combined as much as possible without any regards to their order in the relation.