mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
add support for search by houenumber
This commit is contained in:
@@ -292,6 +292,10 @@ class _TokenSequence:
|
||||
penalty=self.penalty,
|
||||
address=base.address[:-1])
|
||||
|
||||
# variant for special housenumber searches
|
||||
if base.housenumber:
|
||||
yield dataclasses.replace(base, penalty=self.penalty)
|
||||
|
||||
# Use beginning of first word as name
|
||||
if self.direction != -1:
|
||||
first = base.address[0]
|
||||
|
||||
Reference in New Issue
Block a user