mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-15 10:57:58 +00:00
avoid interpreting integral numbers as coordinates
There are addresses of type '123 W 345 N, Reigh', where 'W 345 N' is the actual name of the street.
This commit is contained in:
@@ -11,7 +11,11 @@ import pytest
|
||||
|
||||
import nominatim.api.v1.helpers as helper
|
||||
|
||||
@pytest.mark.parametrize('inp', ['', 'abc', '12 23', 'abc -78.90, 12.456 def'])
|
||||
@pytest.mark.parametrize('inp', ['',
|
||||
'abc',
|
||||
'12 23',
|
||||
'abc -78.90, 12.456 def',
|
||||
'40 N 60 W'])
|
||||
def test_extract_coords_no_coords(inp):
|
||||
query, x, y = helper.extract_coords_from_query(inp)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user