]> git.openstreetmap.org Git - nominatim.git/blob - settings/import-address.lua
is_indexed no longer exists
[nominatim.git] / settings / import-address.lua
1 local flex = require('flex-base')
2
3 flex.set_main_tags{
4     highway = {motorway = 'always',
5                trunk = 'always',
6                primary = 'always',
7                secondary = 'always',
8                tertiary = 'always',
9                unclassified = 'always',
10                residential = 'always',
11                road = 'always',
12                living_street = 'always',
13                pedestrian = 'always',
14                service = 'named',
15                cycleway = 'named',
16                path = 'named',
17                footway = 'named',
18                steps = 'named',
19                bridleway = 'named',
20                track = 'named',
21                motorway_link = 'named',
22                trunk_link = 'named',
23                primary_link = 'named',
24                secondary_link = 'named',
25                tertiary_link = 'named'},
26     boundary = {administrative = 'named',
27                 postal_code = 'always'},
28     landuse = 'fallback',
29     place = 'always'
30 }
31
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'}
41                    }
42
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',
54                             'loc_ref', 'old_ref',
55                             'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'},
56                    house = {'addr:housename'}
57                   }
58
59 flex.set_address_tags{main = {'addr:housenumber',
60                               'addr:conscriptionnumber',
61                               'addr:streetnumber'},
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                      }
70
71
72 flex.set_unused_handling{extra_keys = {'place'}}
73
74 return flex