mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
differentiate between place searches with and without address
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user