From: Sarah Hoffmann Date: Mon, 17 Jul 2023 12:20:14 +0000 (+0200) Subject: Merge pull request #3112 from jenkin/fix-polgyon-polygon-typo X-Git-Tag: v4.3.0~52 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/9fc235d6706a92f615761d35690a4ad550045ea5?hp=2e56182a7f2837ee09ca08a3c0ac67557b62114f Merge pull request #3112 from jenkin/fix-polgyon-polygon-typo fix polgyon polygon typo --- diff --git a/lib-php/PlaceLookup.php b/lib-php/PlaceLookup.php index 76a093c4..895a30df 100644 --- a/lib-php/PlaceLookup.php +++ b/lib-php/PlaceLookup.php @@ -86,7 +86,7 @@ class PlaceLookup ($this->bIncludePolygonAsSVG ? 1 : 0); if ($iWantedTypes > CONST_PolygonOutput_MaximumTypes) { if (CONST_PolygonOutput_MaximumTypes) { - userError('Select only '.CONST_PolygonOutput_MaximumTypes.' polgyon output option'); + userError('Select only '.CONST_PolygonOutput_MaximumTypes.' polygon output option'); } else { userError('Polygon output is disabled'); } diff --git a/nominatim/api/v1/server_glue.py b/nominatim/api/v1/server_glue.py index 865e1331..5b6efe5f 100644 --- a/nominatim/api/v1/server_glue.py +++ b/nominatim/api/v1/server_glue.py @@ -250,7 +250,7 @@ class ASGIAdaptor(abc.ABC): numgeoms += 1 if numgeoms > self.config().get_int('POLYGON_OUTPUT_MAX_TYPES'): - self.raise_error('Too many polgyon output options selected.') + self.raise_error('Too many polygon output options selected.') return {'address_details': True, 'geometry_simplification': self.get_float('polygon_threshold', 0.0),