forked from hans/Nominatim
Ported functions for the import of special phrases from php to python.
- the command is now --import-special-phrases - the output is not an sql file anymore, data are directly imported to the database. - the little part on the documentation (section data import) has been modified.
This commit is contained in:
3
settings/__init__.py
Normal file
3
settings/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
"""
|
||||
Module for settings
|
||||
"""
|
||||
@@ -77,7 +77,7 @@ NOMINATIM_TIGER_DATA_PATH=
|
||||
NOMINATIM_WIKIPEDIA_DATA_PATH=
|
||||
|
||||
# Configuration file for special phrase import.
|
||||
# When unset, the internal default settings from 'settings/phrase_settings.php'
|
||||
# When unset, the internal default settings from 'settings/phrase_settings.py'
|
||||
# are used.
|
||||
NOMINATIM_PHRASE_CONFIG=
|
||||
|
||||
|
||||
26
settings/phrase_settings.py
Normal file
26
settings/phrase_settings.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""
|
||||
These settings control the import of special phrases from the wiki.
|
||||
"""
|
||||
#class/type combinations to exclude
|
||||
BLACK_LIST = {
|
||||
'bounday': [
|
||||
'administrative'
|
||||
],
|
||||
'place': [
|
||||
'house',
|
||||
'houses'
|
||||
]
|
||||
}
|
||||
|
||||
#If a class is in the white list then all types will
|
||||
#be ignored except the ones given in the list.
|
||||
#Also use this list to exclude an entire class from
|
||||
#special phrases.
|
||||
WHITE_LIST = {
|
||||
'highway': [
|
||||
'bus_stop',
|
||||
'rest_area',
|
||||
'raceway'
|
||||
],
|
||||
'building': []
|
||||
}
|
||||
Reference in New Issue
Block a user