X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8e212a3d0c5df2cd6af04f8b7af1f74ca158aa0e..a7a920a9a5b55bf4290b184f05898a8589c95b40:/nominatim/api/v1/helpers.py diff --git a/nominatim/api/v1/helpers.py b/nominatim/api/v1/helpers.py index 896a131c..ffd06a6a 100644 --- a/nominatim/api/v1/helpers.py +++ b/nominatim/api/v1/helpers.py @@ -155,7 +155,7 @@ COORD_REGEX = [re.compile(r'(?:(?P
.*?)\s+)??' + r + r'(?:\s+(?P.*))?' )] def extract_coords_from_query(query: str) -> Tuple[str, Optional[float], Optional[float]]: - """ Look for something that is formated like a coordinate at the + """ Look for something that is formatted like a coordinate at the beginning or end of the query. If found, extract the coordinate and return the remaining query (or the empty string if the query consisted of nothing but a coordinate).