mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
restrict range for interpolated housenumbers
Interpolations are only supported up to 2^32 by the database. Limit to 8 digits, which is still more than should be needed.
This commit is contained in:
@@ -685,7 +685,8 @@ class PlaceSearch(AbstractSearch):
|
||||
if self.qualifiers:
|
||||
place_sql = place_sql.where(self.qualifiers.sql_restrict(thnr))
|
||||
|
||||
numerals = [int(n) for n in self.housenumbers.values if n.isdigit()]
|
||||
numerals = [int(n) for n in self.housenumbers.values
|
||||
if n.isdigit() and len(n) < 8]
|
||||
interpol_sql: SaColumn
|
||||
tiger_sql: SaColumn
|
||||
if numerals and \
|
||||
|
||||
Reference in New Issue
Block a user