diff --git a/nominatim/cli.py b/nominatim/cli.py index 34b19d7d..70481b4a 100644 --- a/nominatim/cli.py +++ b/nominatim/cli.py @@ -494,7 +494,7 @@ STRUCTURED_QUERY = ( ('county', 'county'), ('state', 'state'), ('country', 'country'), - ('postcalcode', 'postcode') + ('postalcode', 'postcode') ) EXTRADATA_PARAMS = ( diff --git a/nominatim/tools/exec_utils.py b/nominatim/tools/exec_utils.py index ca30b2f7..d5b08392 100644 --- a/nominatim/tools/exec_utils.py +++ b/nominatim/tools/exec_utils.py @@ -34,7 +34,7 @@ def run_api_script(endpoint, project_dir, extra_env=None, phpcgi_bin=None, The function needs a project directory that contains the website directory with the scripts to be executed. The scripts will be run - using php_cgi. Query parameters can be addd as named arguments. + using php_cgi. Query parameters can be added as named arguments. Returns the exit code of the script. """