move search to bind parameters

This commit is contained in:
Sarah Hoffmann
2023-06-26 15:56:10 +02:00
parent 6c4c9ec1f2
commit 9f6f12cfeb
6 changed files with 117 additions and 88 deletions

View File

@@ -528,7 +528,7 @@ class ReverseGeocoder:
log().function('reverse_lookup', coord=coord, params=self.params)
self.bind_params['wkt'] = f'SRID=4326;POINT({coord[0]} {coord[1]})'
self.bind_params['wkt'] = f'POINT({coord[0]} {coord[1]})'
row: Optional[SaRow] = None
row_func: RowFunc = nres.create_from_placex_row