1 local flex = require('flex-base')
4 boundary = {administrative = 'named'},
5 landuse = {residential = 'fallback',
8 industrial = 'fallback',
9 commercial = 'fallback',
10 allotments = 'fallback',
12 place = {county = 'always',
14 municipality = 'always',
22 subdivision = 'always',
23 allotments = 'always',
24 neighbourhood = 'always',
26 isolated_dwelling = 'always',
28 city_block = 'always',
29 mountain_pass = 'always',
34 flex.set_prefilters{delete_keys = {'building', 'source', 'highway',
35 'addr:housenumber', 'addr:street', 'addr:city',
37 'source', '*source', 'type',
38 'is_in:postcode', '*:wikidata', '*:wikipedia',
39 '*:prefix', '*:suffix', 'name:prefix:*', 'name:suffix:*',
40 'name:etymology', 'name:signed', 'name:botanical',
41 'addr:street:name', 'addr:street:type'},
42 delete_tags = {landuse = {'cemetry', 'no'},
43 boundary = {'place'}},
44 extra_keys = {'wikipedia', 'wikipedia:*', 'wikidata', 'capital'}
47 flex.set_name_tags{main = {'name', 'name:*',
48 'int_name', 'int_name:*',
49 'nat_name', 'nat_name:*',
50 'reg_name', 'reg_name:*',
51 'loc_name', 'loc_name:*',
52 'old_name', 'old_name:*',
53 'alt_name', 'alt_name:*', 'alt_name_*',
54 'official_name', 'official_name:*',
55 'place_name', 'place_name:*',
56 'short_name', 'short_name:*'},
57 extra = {'ref', 'int_ref', 'nat_ref', 'reg_ref',
59 'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'}
62 flex.set_address_tags{extra = {'addr:*', 'is_in:*'},
63 postcode = {'postal_code', 'postcode', 'addr:postcode'},
64 country = {'country_code', 'ISO3166-1',
65 'addr:country_code', 'is_in:country_code',
66 'addr:country', 'is_in:country'},
67 postcode_fallback = false
70 flex.set_unused_handling{extra_keys = {'place'}}