mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
Changed phrase_settings.py to phrase-settings.json and added migration function for old php settings file.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
"""
|
||||
Module for settings
|
||||
"""
|
||||
25
settings/phrase-settings.json
Normal file
25
settings/phrase-settings.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"Comments": [
|
||||
"Black list correspond to class/type combinations to exclude",
|
||||
"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."
|
||||
],
|
||||
"blackList": {
|
||||
"bounday": [
|
||||
"administrative"
|
||||
],
|
||||
"place": [
|
||||
"house",
|
||||
"houses"
|
||||
]
|
||||
},
|
||||
"whiteList": {
|
||||
"highway": [
|
||||
"bus_stop",
|
||||
"rest_area",
|
||||
"raceway'"
|
||||
],
|
||||
"building": []
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
"""
|
||||
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