]> git.openstreetmap.org Git - nominatim.git/log
nominatim.git
5 weeks agoremove code only needed for older PostgreSQL/PostGIS versions
Sarah Hoffmann [Mon, 18 Nov 2024 09:11:09 +0000 (10:11 +0100)]
remove code only needed for older PostgreSQL/PostGIS versions

5 weeks agoincrease minimum versions for PostgreSQL and PostGIS
Sarah Hoffmann [Mon, 18 Nov 2024 08:28:06 +0000 (09:28 +0100)]
increase minimum versions for PostgreSQL and PostGIS

5 weeks agoMerge pull request #3590 from lonvia/lookup-per-osm-type
Sarah Hoffmann [Fri, 15 Nov 2024 08:44:16 +0000 (09:44 +0100)]
Merge pull request #3590 from lonvia/lookup-per-osm-type

Look up different OSM types in placex separately

5 weeks agoMerge pull request #3588 from lonvia/optional-reverse-api
Sarah Hoffmann [Thu, 14 Nov 2024 18:33:57 +0000 (19:33 +0100)]
Merge pull request #3588 from lonvia/optional-reverse-api

Add support for adding endpoints to server conditionally

5 weeks agolook up different OSM types in placex separately
Sarah Hoffmann [Thu, 14 Nov 2024 16:47:01 +0000 (17:47 +0100)]
look up different OSM types in placex separately

There are separate indexes on placex for the different OSM types.
PostgreSQL can only use these indexes if the type is fixed per query.

5 weeks agofix grammar in issue template
Sarah Hoffmann [Thu, 14 Nov 2024 16:24:19 +0000 (17:24 +0100)]
fix grammar in issue template

5 weeks agoMerge pull request #3587 from danieldegroot2/lookup-spelling
Sarah Hoffmann [Thu, 14 Nov 2024 15:53:11 +0000 (16:53 +0100)]
Merge pull request #3587 from danieldegroot2/lookup-spelling

Update lookup.py - Correct spelling for "simultaneously"

5 weeks agoenable search endpoint only when search table is available
Sarah Hoffmann [Wed, 13 Nov 2024 21:53:33 +0000 (22:53 +0100)]
enable search endpoint only when search table is available

5 weeks agomove server route creation into async function
Sarah Hoffmann [Wed, 13 Nov 2024 20:27:14 +0000 (21:27 +0100)]
move server route creation into async function

5 weeks agoUpdate lookup.py - Correct spelling for "simultaneously"
danieldegroot2 [Wed, 13 Nov 2024 19:35:37 +0000 (20:35 +0100)]
Update lookup.py - Correct spelling for "simultaneously"

Corrects minor spelling mistake.

5 weeks agoMerge pull request #3586 from lonvia/reduce-lookup-calls
Sarah Hoffmann [Wed, 13 Nov 2024 18:33:22 +0000 (19:33 +0100)]
Merge pull request #3586 from lonvia/reduce-lookup-calls

Reduce number of SQL queries for lookup call

5 weeks agolook up all places at once
Sarah Hoffmann [Tue, 12 Nov 2024 21:15:43 +0000 (22:15 +0100)]
look up all places at once

6 weeks agoMerge pull request #3582 from lonvia/switch-to-flake
Sarah Hoffmann [Mon, 11 Nov 2024 10:20:21 +0000 (11:20 +0100)]
Merge pull request #3582 from lonvia/switch-to-flake

Switch from pylint to flake8 for linting

6 weeks agoMerge pull request #3580 from lonvia/about-ai-prs
Sarah Hoffmann [Mon, 11 Nov 2024 09:12:36 +0000 (10:12 +0100)]
Merge pull request #3580 from lonvia/about-ai-prs

Contributions: some additional rules for AI use

6 weeks agoreplace pylint with flake8 everywhere
Sarah Hoffmann [Sun, 10 Nov 2024 22:14:09 +0000 (23:14 +0100)]
replace pylint with flake8 everywhere

6 weeks agoremove remaining pylint hints
Sarah Hoffmann [Sun, 10 Nov 2024 21:49:29 +0000 (22:49 +0100)]
remove remaining pylint hints

6 weeks agofix style issue found by flake8
Sarah Hoffmann [Sun, 10 Nov 2024 21:47:14 +0000 (22:47 +0100)]
fix style issue found by flake8

6 weeks agocontributions: some additional rules for AI use
Sarah Hoffmann [Sun, 10 Nov 2024 09:39:40 +0000 (10:39 +0100)]
contributions: some additional rules for AI use

7 weeks agoMerge pull request #3576 from lonvia/test-updating
Sarah Hoffmann [Mon, 4 Nov 2024 14:56:20 +0000 (15:56 +0100)]
Merge pull request #3576 from lonvia/test-updating

Github action for testing migration

7 weeks agoactions: add test for database migration
Sarah Hoffmann [Mon, 4 Nov 2024 09:04:13 +0000 (10:04 +0100)]
actions: add test for database migration

7 weeks agodo not rename parameters in existing SQL function
Sarah Hoffmann [Mon, 4 Nov 2024 08:46:20 +0000 (09:46 +0100)]
do not rename parameters in existing SQL function

7 weeks agoMerge pull request #3575 from lonvia/improve-centroid
Sarah Hoffmann [Mon, 4 Nov 2024 08:09:40 +0000 (09:09 +0100)]
Merge pull request #3575 from lonvia/improve-centroid

Improve centroid computation for line strings

7 weeks agoavoid multiple centroid computations
Sarah Hoffmann [Sun, 3 Nov 2024 21:00:03 +0000 (22:00 +0100)]
avoid multiple centroid computations

7 weeks agouse line interpolation to create centroid for lines
Sarah Hoffmann [Sun, 3 Nov 2024 16:46:06 +0000 (17:46 +0100)]
use line interpolation to create centroid for lines

ST_PointOnSurface always returns one of the vertices of a line.
This means that a two-point line will have the centroid at
one of the ends, which is less then ideal.

8 weeks agofix backward compatibility issues with Python 3.7
Sarah Hoffmann [Fri, 25 Oct 2024 21:43:59 +0000 (23:43 +0200)]
fix backward compatibility issues with Python 3.7

8 weeks agoremove now unnecessary type-ignores
Sarah Hoffmann [Fri, 25 Oct 2024 15:56:47 +0000 (17:56 +0200)]
remove now unnecessary type-ignores

8 weeks agoMerge pull request #3558 from otbutz/patch-1
Sarah Hoffmann [Fri, 25 Oct 2024 13:33:59 +0000 (15:33 +0200)]
Merge pull request #3558 from otbutz/patch-1

Fix gunicorn invocation

2 months agoFix gunicorn invocation
otbutz [Wed, 9 Oct 2024 08:07:43 +0000 (10:07 +0200)]
Fix gunicorn invocation

2 months agoMerge pull request #3554 from lonvia/postcode-bbox
Sarah Hoffmann [Mon, 30 Sep 2024 08:50:43 +0000 (10:50 +0200)]
Merge pull request #3554 from lonvia/postcode-bbox

Improve bounding boxes for postcodes

2 months agoget bbox of postcode areas into results
Sarah Hoffmann [Sat, 28 Sep 2024 12:42:32 +0000 (14:42 +0200)]
get bbox of postcode areas into results

2 months agoderive bbox size for postcode nodes from rank_search
Sarah Hoffmann [Sat, 28 Sep 2024 11:45:32 +0000 (13:45 +0200)]
derive bbox size for postcode nodes from rank_search

2 months agoadd new format 'raw' for CLI commands
Sarah Hoffmann [Sat, 28 Sep 2024 08:10:58 +0000 (10:10 +0200)]
add new format 'raw' for CLI commands

This dumps the original results with all details available.

2 months agoRevert "work round typing bug in pyosmium 4.0"
Sarah Hoffmann [Fri, 27 Sep 2024 18:19:37 +0000 (20:19 +0200)]
Revert "work round typing bug in pyosmium 4.0"

This reverts commit f960a9bf7fd1702b3d66995dd69307bd91d61a08.

2 months agoMerge pull request #3552 from lonvia/drop-some-migrations
Sarah Hoffmann [Fri, 27 Sep 2024 17:46:37 +0000 (19:46 +0200)]
Merge pull request #3552 from lonvia/drop-some-migrations

Restrict migrations to versions 4.3+

2 months agodrop automatic migration from versions <4.3
Sarah Hoffmann [Fri, 27 Sep 2024 10:07:48 +0000 (12:07 +0200)]
drop automatic migration from versions <4.3

2 months agoMerge pull request #3542 from lonvia/remove-legacy-tokenizer
Sarah Hoffmann [Tue, 24 Sep 2024 13:42:40 +0000 (15:42 +0200)]
Merge pull request #3542 from lonvia/remove-legacy-tokenizer

Remove legacy tokenizer

2 months agowork round typing bug in pyosmium 4.0
Sarah Hoffmann [Tue, 24 Sep 2024 09:51:01 +0000 (11:51 +0200)]
work round typing bug in pyosmium 4.0

3 months agosupress new pylint errors
Sarah Hoffmann [Sun, 22 Sep 2024 19:58:25 +0000 (21:58 +0200)]
supress new pylint errors

3 months agoremove support for unindexed tokens
Sarah Hoffmann [Sun, 22 Sep 2024 08:39:10 +0000 (10:39 +0200)]
remove support for unindexed tokens

This was a special feature of the legacy tokenizer who would not
index very frequent tokens.

3 months agoremove PHPCS configuration
Sarah Hoffmann [Sat, 21 Sep 2024 16:27:19 +0000 (18:27 +0200)]
remove PHPCS configuration

3 months agoremove documentation around legacy tokenizer
Sarah Hoffmann [Sat, 21 Sep 2024 16:27:01 +0000 (18:27 +0200)]
remove documentation around legacy tokenizer

3 months agoremove all references to a module path
Sarah Hoffmann [Sat, 21 Sep 2024 15:39:01 +0000 (17:39 +0200)]
remove all references to a module path

No longer used now that legacy tokenizer is gone.

3 months agoremove warning about now removed legacy tokenizer
Sarah Hoffmann [Sat, 21 Sep 2024 15:12:35 +0000 (17:12 +0200)]
remove warning about now removed legacy tokenizer

3 months agoremove special casing for legacy tokenizer from BDD tests
Sarah Hoffmann [Sat, 21 Sep 2024 15:07:32 +0000 (17:07 +0200)]
remove special casing for legacy tokenizer from BDD tests

3 months agoremove PostgreSQL legacy module
Sarah Hoffmann [Sat, 21 Sep 2024 09:51:58 +0000 (11:51 +0200)]
remove PostgreSQL legacy module

3 months agoremove legacy tokenizer and direct tests
Sarah Hoffmann [Sat, 21 Sep 2024 09:38:08 +0000 (11:38 +0200)]
remove legacy tokenizer and direct tests

3 months agoMerge pull request #3536 from lonvia/remove-php
Sarah Hoffmann [Mon, 16 Sep 2024 19:49:01 +0000 (21:49 +0200)]
Merge pull request #3536 from lonvia/remove-php

Remove PHP frontend

3 months agoadd migration warning for PHP frontend removal
Sarah Hoffmann [Mon, 16 Sep 2024 07:40:26 +0000 (09:40 +0200)]
add migration warning for PHP frontend removal

3 months agodocs: remove all references to PHP
Sarah Hoffmann [Sun, 15 Sep 2024 14:08:26 +0000 (16:08 +0200)]
docs: remove all references to PHP

3 months agoremove remaining references to php code
Sarah Hoffmann [Sun, 15 Sep 2024 13:33:59 +0000 (15:33 +0200)]
remove remaining references to php code

3 months agoremove PHP frontend support from BDD tests
Sarah Hoffmann [Sun, 15 Sep 2024 11:51:51 +0000 (13:51 +0200)]
remove PHP frontend support from BDD tests

3 months agoremove website setup
Sarah Hoffmann [Sun, 15 Sep 2024 09:58:55 +0000 (11:58 +0200)]
remove website setup

The website directory was for PHP scripts only and is no longer
needed.

3 months agoremove PHP tests
Sarah Hoffmann [Sun, 15 Sep 2024 09:26:49 +0000 (11:26 +0200)]
remove PHP tests

3 months agoremove PHP frontend
Sarah Hoffmann [Sun, 15 Sep 2024 09:22:13 +0000 (11:22 +0200)]
remove PHP frontend

3 months agoprepare 4.5.0 release
Sarah Hoffmann [Wed, 11 Sep 2024 15:51:38 +0000 (17:51 +0200)]
prepare 4.5.0 release

3 months agoMerge pull request #3532 from lonvia/refresh-docs
Sarah Hoffmann [Wed, 11 Sep 2024 08:27:09 +0000 (10:27 +0200)]
Merge pull request #3532 from lonvia/refresh-docs

Update library documentation

3 months agodocs: improve contents listing
Sarah Hoffmann [Tue, 10 Sep 2024 18:36:27 +0000 (20:36 +0200)]
docs: improve contents listing

3 months agodocs: rework library getting started
Sarah Hoffmann [Thu, 29 Aug 2024 20:45:20 +0000 (22:45 +0200)]
docs: rework library getting started

3 months agodocs: avoid loading external fonts
Sarah Hoffmann [Tue, 10 Sep 2024 14:08:43 +0000 (16:08 +0200)]
docs: avoid loading external fonts

3 months agofix permalink character
Sarah Hoffmann [Thu, 29 Aug 2024 20:23:52 +0000 (22:23 +0200)]
fix permalink character

3 months agoMerge pull request #3530 from lonvia/clean-use-of-os-environ
Sarah Hoffmann [Mon, 2 Sep 2024 07:49:10 +0000 (09:49 +0200)]
Merge pull request #3530 from lonvia/clean-use-of-os-environ

Don't use OS environment variables when an explicit environment was set

3 months agorestrict use of os.environ in Configuration
Sarah Hoffmann [Sun, 1 Sep 2024 14:17:30 +0000 (16:17 +0200)]
restrict use of os.environ in Configuration

Only use the OS environment, when the environ parameter is set
to None. Currently it would use the OS env on an empty dict.

3 months agoMerge pull request #3523 from mtmail/import-styles-country-code
Sarah Hoffmann [Mon, 26 Aug 2024 12:03:47 +0000 (14:03 +0200)]
Merge pull request #3523 from mtmail/import-styles-country-code

Import-Styles.md - clarify country_code key

3 months agoMerge pull request #3525 from lonvia/project-dir-less-library
Sarah Hoffmann [Mon, 26 Aug 2024 11:54:35 +0000 (13:54 +0200)]
Merge pull request #3525 from lonvia/project-dir-less-library

Simplify handling of project directory for Nominatim library

4 months agoImport-Styles.md - clarify country_code key
marc tobias [Fri, 23 Aug 2024 11:49:16 +0000 (13:49 +0200)]
Import-Styles.md - clarify country_code key

4 months agofix typo in Import-Styles.md
mtmail [Thu, 22 Aug 2024 22:40:13 +0000 (00:40 +0200)]
fix typo in Import-Styles.md

4 months agoallow None and str for project_dir in NominatimAPI init
Sarah Hoffmann [Thu, 22 Aug 2024 20:49:12 +0000 (22:49 +0200)]
allow None and str for project_dir in NominatimAPI init

4 months agoMerge pull request #3520 from lonvia/restrict-interpolation-range
Sarah Hoffmann [Tue, 20 Aug 2024 07:03:52 +0000 (09:03 +0200)]
Merge pull request #3520 from lonvia/restrict-interpolation-range

Restrict interpolation housenumbers to 0-999999

4 months agoMerge pull request #3521 from lonvia/make-requests-optional
Sarah Hoffmann [Tue, 20 Aug 2024 07:03:39 +0000 (09:03 +0200)]
Merge pull request #3521 from lonvia/make-requests-optional

Fix error around missing requests library

4 months agorestrict interpolation housenumbers to 0-999999
Sarah Hoffmann [Mon, 19 Aug 2024 18:38:04 +0000 (20:38 +0200)]
restrict interpolation housenumbers to 0-999999

Ensures that the numbers fit into integers.

4 months agoimport requests library later than osmium
Sarah Hoffmann [Mon, 19 Aug 2024 14:36:09 +0000 (16:36 +0200)]
import requests library later than osmium

requests will usually be pulled in by osmium and is therefore not
a direct dependency of nominatim. Make sure it is only used, when
osmium is present.

4 months agoMerge pull request #3519 from lonvia/api-error-handling
Sarah Hoffmann [Mon, 19 Aug 2024 14:26:18 +0000 (16:26 +0200)]
Merge pull request #3519 from lonvia/api-error-handling

Improve error handling around CLI api commands

4 months agotranslate UsageError in CLI API commands
Sarah Hoffmann [Mon, 19 Aug 2024 10:02:33 +0000 (12:02 +0200)]
translate UsageError in CLI API commands

UsageErrors are handled specially and don't show backtraces
unless explicitly requested. We want the same behaviour for
errors coming from the API functions.

4 months agouse NominatimAPI in with context in CLI tool
Sarah Hoffmann [Mon, 19 Aug 2024 09:42:22 +0000 (11:42 +0200)]
use NominatimAPI in with context in CLI tool

4 months agomake NominatimAPI[Async] a context manager
Sarah Hoffmann [Mon, 19 Aug 2024 09:31:38 +0000 (11:31 +0200)]
make NominatimAPI[Async] a context manager

If close() isn't properly called, it can lead to odd error messages
about uncaught exceptions.

4 months agoMerge pull request #3517 from lonvia/improve-custom-formatter
Sarah Hoffmann [Sun, 18 Aug 2024 08:20:53 +0000 (10:20 +0200)]
Merge pull request #3517 from lonvia/improve-custom-formatter

Extend use of custom result formatters to CLI tool

4 months agoimprove error message on missing modules from nominatim_api
Sarah Hoffmann [Sat, 17 Aug 2024 08:03:36 +0000 (10:03 +0200)]
improve error message on missing modules from nominatim_api

4 months agoimprove docs on custom result formatters
Sarah Hoffmann [Fri, 16 Aug 2024 20:11:41 +0000 (22:11 +0200)]
improve docs on custom result formatters

Adds section on formatting errors and using CLI. Improves wording
in others.

4 months agoCLI: more useful error messages on JSON formatting errors
Sarah Hoffmann [Fri, 16 Aug 2024 17:47:48 +0000 (19:47 +0200)]
CLI: more useful error messages on JSON formatting errors

4 months agouse custom result formatters in CLI commands
Sarah Hoffmann [Fri, 16 Aug 2024 17:30:57 +0000 (19:30 +0200)]
use custom result formatters in CLI commands

4 months agoadd missing includes in result fomatting example
Sarah Hoffmann [Fri, 16 Aug 2024 09:32:38 +0000 (11:32 +0200)]
add missing includes in result fomatting example

4 months agoMerge pull request #3516 from lonvia/fixed-country-order
Sarah Hoffmann [Thu, 15 Aug 2024 14:54:38 +0000 (16:54 +0200)]
Merge pull request #3516 from lonvia/fixed-country-order

Ensure consistent country assignments

4 months agoensure consistent country assignments
Sarah Hoffmann [Thu, 15 Aug 2024 12:26:09 +0000 (14:26 +0200)]
ensure consistent country assignments

When OSM data has areas with overlapping countries, use the country
assignments from the pre-defined country grid for tie-breaking.
If that fails, fall back to the country with the smaller partition
number.

4 months agoMerge pull request #3515 from lonvia/custom-result-formatting
Sarah Hoffmann [Thu, 15 Aug 2024 07:26:27 +0000 (09:26 +0200)]
Merge pull request #3515 from lonvia/custom-result-formatting

Add the capability to define custom formatting functions for API output

4 months agoadd documentation for custom formatters
Sarah Hoffmann [Wed, 14 Aug 2024 16:22:59 +0000 (18:22 +0200)]
add documentation for custom formatters

4 months agoconfigurable error formatting and content type in result formatter
Sarah Hoffmann [Wed, 14 Aug 2024 09:59:20 +0000 (11:59 +0200)]
configurable error formatting and content type in result formatter

4 months agomake API formatter loadable from project directory
Sarah Hoffmann [Tue, 13 Aug 2024 21:21:38 +0000 (23:21 +0200)]
make API formatter loadable from project directory

4 months agomake formatting module non-static
Sarah Hoffmann [Tue, 13 Aug 2024 20:39:43 +0000 (22:39 +0200)]
make formatting module non-static

4 months agomove ASGIAdoptor out of v1 module
Sarah Hoffmann [Tue, 13 Aug 2024 19:32:11 +0000 (21:32 +0200)]
move ASGIAdoptor out of v1 module

4 months agoremove v1-specific functions from ASGIAdaptor
Sarah Hoffmann [Tue, 13 Aug 2024 17:38:14 +0000 (19:38 +0200)]
remove v1-specific functions from ASGIAdaptor

4 months agoMerge pull request #3514 from lonvia/remove-pythonpath
Sarah Hoffmann [Tue, 13 Aug 2024 13:18:48 +0000 (15:18 +0200)]
Merge pull request #3514 from lonvia/remove-pythonpath

Vagrant install: remove custom python path

4 months agovagrant install: remove custom python path
Sarah Hoffmann [Tue, 13 Aug 2024 07:31:36 +0000 (09:31 +0200)]
vagrant install: remove custom python path

4 months agoMerge pull request #3510 from lonvia/indexing-precompute-count
Sarah Hoffmann [Mon, 12 Aug 2024 21:55:19 +0000 (23:55 +0200)]
Merge pull request #3510 from lonvia/indexing-precompute-count

Indexing: precompute counts of affected rows

4 months agoindexing: precompute row counts
Sarah Hoffmann [Mon, 12 Aug 2024 12:57:26 +0000 (14:57 +0200)]
indexing: precompute row counts

Doing this once for the whole batch of ranks saves about
half a second for small imports. Speeds up BDD tests.

4 months agoMerge pull request #3509 from lonvia/deprecations
Sarah Hoffmann [Mon, 12 Aug 2024 09:27:56 +0000 (11:27 +0200)]
Merge pull request #3509 from lonvia/deprecations

Add deprecation warnings and check for osm2pgsql version

4 months agoadd deprecation warnings in the code
Sarah Hoffmann [Fri, 9 Aug 2024 15:40:15 +0000 (17:40 +0200)]
add deprecation warnings in the code

4 months agofail if osm2pgsql is not recent enough
Sarah Hoffmann [Fri, 9 Aug 2024 12:44:49 +0000 (14:44 +0200)]
fail if osm2pgsql is not recent enough

4 months agoosm2pgsq: do not use deprecated tablespace options
Sarah Hoffmann [Thu, 8 Aug 2024 20:19:11 +0000 (22:19 +0200)]
osm2pgsq: do not use deprecated tablespace options

4 months agoadd deprecation warnings throughout docs
Sarah Hoffmann [Thu, 8 Aug 2024 09:53:27 +0000 (11:53 +0200)]
add deprecation warnings throughout docs

4 months agoMerge pull request #3506 from mtmail/development-environment-more-dependencies
Sarah Hoffmann [Fri, 9 Aug 2024 17:24:56 +0000 (19:24 +0200)]
Merge pull request #3506 from mtmail/development-environment-more-dependencies

Development environment: add missing dependencies