]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix polgyon polygon typo
authorAlessio Cimarelli <alessio.cimarelli@sparkfabrik.com>
Mon, 17 Jul 2023 08:11:57 +0000 (10:11 +0200)
committerAlessio Cimarelli <alessio.cimarelli@sparkfabrik.com>
Mon, 17 Jul 2023 08:11:57 +0000 (10:11 +0200)
lib-php/PlaceLookup.php
nominatim/api/v1/server_glue.py

index 76a093c4a98b79170b3884c4f89c3719f60a247e..895a30dfb8a5890b605a27ce022b86698b2fd912 100644 (file)
@@ -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');
             }
index 865e13318c61732f2f29f04a77fee3f1f4c28344..5b6efe5fc6edeb0da896e7e06c01c78a76b0c478 100644 (file)
@@ -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),