1 local flex = require('flex-base')
4 highway = {motorway = 'always',
9 unclassified = 'always',
10 residential = 'always',
12 living_street = 'always',
13 pedestrian = 'always',
21 motorway_link = 'named',
23 primary_link = 'named',
24 secondary_link = 'named',
25 tertiary_link = 'named'},
26 boundary = {administrative = 'named',
27 postal_code = 'always'},
32 flex.set_prefilters{delete_keys = {'building', 'source',
33 'source', '*source', 'type',
34 'is_in:postcode', '*:wikidata', '*:wikipedia',
35 '*:prefix', '*:suffix', 'name:prefix:*', 'name:suffix:*',
36 'name:etymology', 'name:signed', 'name:botanical',
37 'addr:street:name', 'addr:street:type'},
38 delete_tags = {landuse = {'cemetry', 'no'},
39 boundary = {'place'}},
40 extra_keys = {'wikipedia', 'wikipedia:*', 'wikidata', 'capital', 'area'}
43 flex.set_name_tags{main = {'name', 'name:*',
44 'int_name', 'int_name:*',
45 'nat_name', 'nat_name:*',
46 'reg_name', 'reg_name:*',
47 'loc_name', 'loc_name:*',
48 'old_name', 'old_name:*',
49 'alt_name', 'alt_name:*', 'alt_name_*',
50 'official_name', 'official_name:*',
51 'place_name', 'place_name:*',
52 'short_name', 'short_name:*'},
53 extra = {'ref', 'int_ref', 'nat_ref', 'reg_ref',
55 'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'},
56 house = {'addr:housename'}
59 flex.set_address_tags{main = {'addr:housenumber',
60 'addr:conscriptionnumber',
62 extra = {'addr:*', 'is_in:*', 'tiger:county'},
63 postcode = {'postal_code', 'postcode', 'addr:postcode',
64 'tiger:zip_left', 'tiger:zip_right'},
65 country = {'country_code', 'ISO3166-1',
66 'addr:country_code', 'is_in:country_code',
67 'addr:country', 'is_in:country'},
68 interpolation = {'addr:interpolation'}
72 flex.set_unused_handling{extra_keys = {'place'}}