]> git.openstreetmap.org Git - nominatim.git/blob - settings/import-street.lua
switch to symlink approach for packages
[nominatim.git] / settings / import-street.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                                    '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'}
42                    }
43
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',
55                             'loc_ref', 'old_ref',
56                             'iata', 'icao', 'pcode', 'pcode:*', 'ISO3166-2'}
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                       postcode_fallback = false
70                      }
71
72 flex.set_unused_handling{extra_keys = {'place'}}
73
74 return flex