differentiate between place searches with and without address

This commit is contained in:
Sarah Hoffmann
2025-07-07 11:17:01 +02:00
parent 13eaea8aae
commit c634e9fc5f
6 changed files with 38 additions and 23 deletions

View File

@@ -22,7 +22,7 @@ APIOPTIONS = ['search']
def run_search(apiobj, frontend, global_penalty, lookup, ranking, count=2,
pcs=[], ccodes=[], quals=[],
pcs=[], ccodes=[], quals=[], has_address=False,
details=SearchDetails()):
class MySearchData:
penalty = global_penalty
@@ -33,7 +33,7 @@ def run_search(apiobj, frontend, global_penalty, lookup, ranking, count=2,
rankings = ranking
housenumbers = None
search = PlaceSearch(0.0, MySearchData(), count)
search = PlaceSearch(0.0, MySearchData(), count, has_address)
if frontend is None:
api = apiobj