2022-12-23 19:35:28 +03:00
|
|
|
local flex = require('flex-base')
|
2022-12-16 13:19:37 +03:00
|
|
|
|
|
|
|
flex.set_main_tags{
|
|
|
|
building = 'fallback',
|
|
|
|
emergency = 'always',
|
|
|
|
healthcare = 'fallback',
|
|
|
|
historic = 'always',
|
|
|
|
military = 'always',
|
|
|
|
natural = 'named',
|
|
|
|
highway = {'always',
|
|
|
|
street_lamp = 'named',
|
|
|
|
traffic_signals = 'named',
|
|
|
|
service = 'named',
|
|
|
|
cycleway = 'named',
|
|
|
|
path = 'named',
|
|
|
|
footway = 'named',
|
|
|
|
steps = 'named',
|
|
|
|
bridleway = 'named',
|
|
|
|
track = 'named',
|
|
|
|
motorway_link = 'named',
|
|
|
|
trunk_link = 'named',
|
|
|
|
primary_link = 'named',
|
|
|
|
secondary_link = 'named',
|
|
|
|
tertiary_link = 'named'},
|
|
|
|
railway = 'named',
|
2024-03-18 23:26:41 +03:00
|
|
|
man_made = {'none',
|
|
|
|
pier = 'always',
|
|
|
|
tower = 'always',
|
|
|
|
bridge = 'always',
|
|
|
|
works = 'named',
|
|
|
|
water_tower = 'always',
|
|
|
|
dyke = 'named',
|
2024-07-17 11:57:29 +03:00
|
|
|
adit = 'named',
|
2024-03-18 23:26:41 +03:00
|
|
|
lighthouse = 'always',
|
|
|
|
watermill = 'always',
|
|
|
|
tunnel = 'always'},
|
2022-12-16 13:19:37 +03:00
|
|
|
aerialway = 'always',
|
|
|
|
boundary = {'named',
|
2023-04-03 10:17:50 +03:00
|
|
|
postal_code = 'always'},
|
2022-12-16 13:19:37 +03:00
|
|
|
aeroway = 'always',
|
|
|
|
amenity = 'always',
|
|
|
|
club = 'always',
|
|
|
|
craft = 'always',
|
|
|
|
junction = 'fallback',
|
|
|
|
landuse = 'fallback',
|
2024-02-14 13:47:10 +03:00
|
|
|
leisure = {'always',
|
|
|
|
nature_reserve = 'fallback'},
|
2022-12-16 13:19:37 +03:00
|
|
|
office = 'always',
|
|
|
|
mountain_pass = 'always',
|
|
|
|
shop = 'always',
|
|
|
|
tourism = 'always',
|
|
|
|
bridge = 'named_with_key',
|
|
|
|
tunnel = 'named_with_key',
|
|
|
|
waterway = 'named',
|
|
|
|
place = 'always'
|
|
|
|
}
|
|
|
|
|
|
|
|
flex.set_prefilters{delete_keys = {'note', 'note:*', 'source', '*source', 'attribution',
|
|
|
|
'comment', 'fixme', 'FIXME', 'created_by', 'NHD:*',
|
|
|
|
'nhd:*', 'gnis:*', 'geobase:*', 'KSJ2:*', 'yh:*',
|
|
|
|
'osak:*', 'naptan:*', 'CLC:*', 'import', 'it:fvg:*',
|
|
|
|
'type', 'lacounty:*', 'ref:ruian:*', 'building:ruian:type',
|
2023-03-20 23:42:24 +03:00
|
|
|
'ref:linz:*', 'is_in:postcode',
|
|
|
|
'*:prefix', '*:suffix', 'name:prefix:*', 'name:suffix:*',
|
|
|
|
'name:etymology', 'name:signed', 'name:botanical',
|
|
|
|
'*:wikidata', '*:wikipedia', 'brand:wikipedia:*',
|
|
|
|
'addr:street:name', 'addr:street:type'},
|
2022-12-16 13:19:37 +03:00
|
|
|
delete_tags = {emergency = {'yes', 'no', 'fire_hydrant'},
|
|
|
|
historic = {'yes', 'no'},
|
|
|
|
military = {'yes', 'no'},
|
|
|
|
natural = {'yes', 'no', 'coastline'},
|
|
|
|
highway = {'no', 'turning_circle', 'mini_roundabout',
|
|
|
|
'noexit', 'crossing', 'give_way', 'stop'},
|
2024-02-15 19:00:56 +03:00
|
|
|
railway = {'level_crossing', 'no', 'rail', 'switch',
|
|
|
|
'abandoned', 'signal', 'buffer_stop', 'razed'},
|
2022-12-16 13:19:37 +03:00
|
|
|
aerialway = {'pylon', 'no'},
|
|
|
|
aeroway = {'no'},
|
2024-07-30 11:41:13 +03:00
|
|
|
amenity = {'no', 'parking_space', 'parking_entrance',
|
|
|
|
'waste_disposal', 'hunting_stand'},
|
2022-12-16 13:19:37 +03:00
|
|
|
club = {'no'},
|
|
|
|
craft = {'no'},
|
|
|
|
leisure = {'no'},
|
|
|
|
office = {'no'},
|
|
|
|
mountain_pass = {'no'},
|
|
|
|
shop = {'no'},
|
|
|
|
tourism = {'yes', 'no'},
|
|
|
|
bridge = {'no'},
|
|
|
|
tunnel = {'no'},
|
|
|
|
waterway = {'riverbank'},
|
|
|
|
building = {'no'},
|
2024-02-14 14:07:22 +03:00
|
|
|
boundary = {'place', 'land_area'}},
|
2023-03-20 23:42:24 +03:00
|
|
|
extra_keys = {'wikidata', 'wikipedia', 'wikipedia:*'}
|
2022-12-16 13:19:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
flex.set_name_tags{main = {'name', 'name:*',
|
|
|
|
'int_name', 'int_name:*',
|
|
|
|
'nat_name', 'nat_name:*',
|
|
|
|
'reg_name', 'reg_name:*',
|
|
|
|
'loc_name', 'loc_name:*',
|
|
|
|
'old_name', 'old_name:*',
|
|
|
|
'alt_name', 'alt_name:*', 'alt_name_*',
|
|
|
|
'official_name', 'official_name:*',
|
|
|
|
'place_name', 'place_name:*',
|
|
|
|
'short_name', 'short_name:*', 'brand'},
|
|
|
|
extra = {'ref', 'int_ref', 'nat_ref', 'reg_ref',
|
|
|
|
'loc_ref', 'old_ref',
|
|
|
|
'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'},
|
|
|
|
house = {'addr:housename'}
|
|
|
|
}
|
|
|
|
|
|
|
|
flex.set_address_tags{main = {'addr:housenumber',
|
|
|
|
'addr:conscriptionnumber',
|
|
|
|
'addr:streetnumber'},
|
|
|
|
extra = {'addr:*', 'is_in:*', 'tiger:county'},
|
|
|
|
postcode = {'postal_code', 'postcode', 'addr:postcode',
|
|
|
|
'tiger:zip_left', 'tiger:zip_right'},
|
|
|
|
country = {'country_code', 'ISO3166-1',
|
|
|
|
'addr:country_code', 'is_in:country_code',
|
|
|
|
'addr:country', 'is_in:country'},
|
|
|
|
interpolation = {'addr:interpolation'}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
flex.set_unused_handling{extra_keys = {'place'}}
|
2022-12-23 19:35:28 +03:00
|
|
|
|
|
|
|
return flex
|