]> git.openstreetmap.org Git - nominatim.git/blob - settings/import-full.lua
reduce influence of viewbox
[nominatim.git] / settings / import-full.lua
1 local flex = require('flex-base')
2
3 flex.set_main_tags{
4     building = 'fallback',
5     emergency = 'always',
6     healthcare = 'fallback',
7     historic = 'always',
8     military = 'always',
9     natural = 'named',
10     highway = {'always',
11                street_lamp = 'named',
12                traffic_signals = 'named',
13                service = 'named',
14                cycleway = 'named',
15                path = 'named',
16                footway = 'named',
17                steps = 'named',
18                bridleway = 'named',
19                track = 'named',
20                motorway_link = 'named',
21                trunk_link = 'named',
22                primary_link = 'named',
23                secondary_link = 'named',
24                tertiary_link = 'named'},
25     railway = 'named',
26     man_made = 'always',
27     aerialway = 'always',
28     boundary = {'named',
29                 postal_code = 'always'},
30     aeroway = 'always',
31     amenity = 'always',
32     club = 'always',
33     craft = 'always',
34     junction = 'fallback',
35     landuse = 'fallback',
36     leisure = 'always',
37     office = 'always',
38     mountain_pass = 'always',
39     shop = 'always',
40     tourism = 'always',
41     bridge = 'named_with_key',
42     tunnel = 'named_with_key',
43     waterway = 'named',
44     place = 'always'
45 }
46
47 flex.set_prefilters{delete_keys = {'note', 'note:*', 'source', '*source', 'attribution',
48                                    'comment', 'fixme', 'FIXME', 'created_by', 'NHD:*',
49                                    'nhd:*', 'gnis:*', 'geobase:*', 'KSJ2:*', 'yh:*',
50                                    'osak:*', 'naptan:*', 'CLC:*', 'import', 'it:fvg:*',
51                                    'type', 'lacounty:*', 'ref:ruian:*', 'building:ruian:type',
52                                    'ref:linz:*', 'is_in:postcode',
53                                    '*:prefix', '*:suffix', 'name:prefix:*', 'name:suffix:*',
54                                    'name:etymology', 'name:signed', 'name:botanical',
55                                    '*:wikidata', '*:wikipedia', 'brand:wikipedia:*',
56                                    'addr:street:name', 'addr:street:type'},
57                     delete_tags = {emergency = {'yes', 'no', 'fire_hydrant'},
58                                    historic = {'yes', 'no'},
59                                    military = {'yes', 'no'},
60                                    natural = {'yes', 'no', 'coastline'},
61                                    highway = {'no', 'turning_circle', 'mini_roundabout',
62                                               'noexit', 'crossing', 'give_way', 'stop'},
63                                    railway = {'level_crossing', 'no', 'rail'},
64                                    man_made = {'survey_point', 'cutline'},
65                                    aerialway = {'pylon', 'no'},
66                                    aeroway = {'no'},
67                                    amenity = {'no'},
68                                    club = {'no'},
69                                    craft = {'no'},
70                                    leisure = {'no'},
71                                    office = {'no'},
72                                    mountain_pass = {'no'},
73                                    shop = {'no'},
74                                    tourism = {'yes', 'no'},
75                                    bridge = {'no'},
76                                    tunnel = {'no'},
77                                    waterway = {'riverbank'},
78                                    building = {'no'},
79                                    boundary = {'place'}},
80                     extra_keys = {'wikidata', 'wikipedia', 'wikipedia:*'}
81                    }
82
83 flex.set_name_tags{main = {'name', 'name:*',
84                           'int_name', 'int_name:*',
85                           'nat_name', 'nat_name:*',
86                           'reg_name', 'reg_name:*',
87                           'loc_name', 'loc_name:*',
88                           'old_name', 'old_name:*',
89                           'alt_name', 'alt_name:*', 'alt_name_*',
90                           'official_name', 'official_name:*',
91                           'place_name', 'place_name:*',
92                           'short_name', 'short_name:*', 'brand'},
93                    extra = {'ref', 'int_ref', 'nat_ref', 'reg_ref',
94                             'loc_ref', 'old_ref',
95                             'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'},
96                    house = {'addr:housename'}
97                   }
98
99 flex.set_address_tags{main = {'addr:housenumber',
100                               'addr:conscriptionnumber',
101                               'addr:streetnumber'},
102                       extra = {'addr:*', 'is_in:*', 'tiger:county'},
103                       postcode = {'postal_code', 'postcode', 'addr:postcode',
104                                   'tiger:zip_left', 'tiger:zip_right'},
105                       country = {'country_code', 'ISO3166-1',
106                                  'addr:country_code', 'is_in:country_code',
107                                  'addr:country', 'is_in:country'},
108                       interpolation = {'addr:interpolation'}
109                      }
110
111
112 flex.set_unused_handling{extra_keys = {'place'}}
113
114 return flex