forked from hans/Nominatim
move amenity creation to tokenizer
The BDD tests still use the old-style amenity creation scripts because we don't have simple means to import a hand-crafted test file of special phrases right now.
This commit is contained in:
@@ -50,6 +50,8 @@ class DummyNameAnalyzer:
|
||||
def add_postcodes_from_db(self):
|
||||
pass
|
||||
|
||||
def update_special_phrases(self, phrases):
|
||||
self.analyser_cache['special_phrases'] = phrases
|
||||
|
||||
def add_country_names(self, code, names):
|
||||
self.analyser_cache['countries'].append((code, names))
|
||||
|
||||
Reference in New Issue
Block a user