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 'addr:housenumber', 'addr:street',
34 'source', '*source', 'type',
35 'is_in:postcode', '*:wikidata', '*:wikipedia',
36 '*:prefix', '*:suffix', 'name:prefix:*', 'name:suffix:*',
37 'name:etymology', 'name:signed', 'name:botanical',
38 'addr:street:name', 'addr:street:type'},
39 delete_tags = {landuse = {'cemetry', 'no'},
40 boundary = {'place'}},
41 extra_keys = {'wikipedia', 'wikipedia:*', 'wikidata', 'capital', 'area'}
44 flex.set_name_tags{main = {'name', 'name:*',
45 'int_name', 'int_name:*',
46 'nat_name', 'nat_name:*',
47 'reg_name', 'reg_name:*',
48 'loc_name', 'loc_name:*',
49 'old_name', 'old_name:*',
50 'alt_name', 'alt_name:*', 'alt_name_*',
51 'official_name', 'official_name:*',
52 'place_name', 'place_name:*',
53 'short_name', 'short_name:*'},
54 extra = {'ref', 'int_ref', 'nat_ref', 'reg_ref',
56 'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'}
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'},
69 postcode_fallback = false
72 flex.set_unused_handling{extra_keys = {'place'}}