]> git.openstreetmap.org Git - nominatim.git/log
nominatim.git
6 months agoMerge pull request #4100 from lonvia/affix-expansion
Sarah Hoffmann [Thu, 21 May 2026 09:26:29 +0000 (11:26 +0200)]
Merge pull request #4100 from lonvia/affix-expansion

Add sanitizer for handling name prefixes and suffixes

6 months agoDocument stable postcode references
Itz-Agasta [Wed, 20 May 2026 20:59:33 +0000 (02:29 +0530)]
Document stable postcode references

6 months agoSupport postcode refs in excluded search results
Itz-Agasta [Wed, 20 May 2026 20:58:31 +0000 (02:28 +0530)]
Support postcode refs in excluded search results

6 months agoSupport postcode refs in lookup and details
Itz-Agasta [Wed, 20 May 2026 20:57:51 +0000 (02:27 +0530)]
Support postcode refs in lookup and details

- resolve postcode refs in postcode-table lookups
- accept `place_ref` in the v1 details endpoint
- add tests for details and lookup behavior

6 months agoAdd stable postcode reference type support
Itz-Agasta [Wed, 20 May 2026 20:55:15 +0000 (02:25 +0530)]
Add stable postcode reference type support

- add `PostcodeRef` and parsing helpers
- allow postcode refs in excluded IDs
- export the new public API type

6 months agoadapt BDD test for new prefix handling
Sarah Hoffmann [Wed, 20 May 2026 18:17:43 +0000 (20:17 +0200)]
adapt BDD test for new prefix handling

6 months agoadd affix handling to default config
Sarah Hoffmann [Wed, 20 May 2026 17:36:34 +0000 (19:36 +0200)]
add affix handling to default config

6 months agoCreate variants-hr.yaml
Janko Mihelić [Fri, 15 May 2026 10:56:25 +0000 (12:56 +0200)]
Create variants-hr.yaml

6 months agoadd documentation for new sanitizer
Sarah Hoffmann [Wed, 20 May 2026 16:07:39 +0000 (18:07 +0200)]
add documentation for new sanitizer

6 months agoadd sanitizer for prefix/suffix expansion
Sarah Hoffmann [Wed, 20 May 2026 15:07:24 +0000 (17:07 +0200)]
add sanitizer for prefix/suffix expansion

6 months agoprepare release 5.3.2.post4
Sarah Hoffmann [Wed, 20 May 2026 09:28:12 +0000 (11:28 +0200)]
prepare release 5.3.2.post4

6 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Wed, 20 May 2026 08:21:50 +0000 (10:21 +0200)]
Merge remote-tracking branch 'upstream/master'

6 months agoMerge pull request #4088 from Itz-Agasta/language-reranking
Sarah Hoffmann [Wed, 20 May 2026 07:54:53 +0000 (09:54 +0200)]
Merge pull request #4088 from Itz-Agasta/language-reranking

Use locale-aware names for search result reranking

6 months agoadd function for choice parameters to sanitizer config
Sarah Hoffmann [Mon, 18 May 2026 17:53:02 +0000 (19:53 +0200)]
add function for choice parameters to sanitizer config

6 months agoImproves locale name matching for address ranking
Itz-Agasta [Sat, 16 May 2026 13:37:34 +0000 (19:07 +0530)]
Improves locale name matching for address ranking

Enhances address ranking accuracy by comparing normalized query text
against all localized name variants and country code, rather than
a single locale name. Reduces false positives and improves ranking
for multilingual search scenarios.

6 months agoMerge pull request #4097 from lonvia/more-sanatizing
Sarah Hoffmann [Fri, 15 May 2026 07:08:47 +0000 (09:08 +0200)]
Merge pull request #4097 from lonvia/more-sanatizing

New sanitizers: delete-names and derive-names

6 months agochange to new delete-names sanitizer
Sarah Hoffmann [Thu, 14 May 2026 18:48:29 +0000 (20:48 +0200)]
change to new delete-names sanitizer

6 months agoMerge pull request #4081 from jeremy-code/jeremy-code-patch-1
Sarah Hoffmann [Thu, 14 May 2026 18:57:58 +0000 (20:57 +0200)]
Merge pull request #4081 from jeremy-code/jeremy-code-patch-1

Update JSON structure in Reverse.md documentation

6 months agonew sanitizer to derive addtional names
Sarah Hoffmann [Thu, 14 May 2026 18:03:57 +0000 (20:03 +0200)]
new sanitizer to derive addtional names

6 months agoadd parameter to regex function to sanitizer config
Sarah Hoffmann [Thu, 14 May 2026 09:35:43 +0000 (11:35 +0200)]
add parameter to regex function to sanitizer config

6 months agoreplace delete-tags sanitizer with one with better parameter names
Sarah Hoffmann [Tue, 12 May 2026 15:32:41 +0000 (17:32 +0200)]
replace delete-tags sanitizer with one with better parameter names

6 months agoUse locale name comparison for low-rank results
Itz-Agasta [Wed, 13 May 2026 18:08:39 +0000 (23:38 +0530)]
Use locale name comparison for low-rank results

6 months agoUpdate JSON structure in Reverse.md documentation
Jeremy Nguyen [Wed, 13 May 2026 01:06:01 +0000 (18:06 -0700)]
Update JSON structure in Reverse.md documentation

- Update JSON structure in Reverse.md docs based on current API (see https://nominatim.openstreetmap.org/reverse?lon=11.3398676&lat=44.5015307&format=geojson)

6 months agogeneralise filter code of the delete tags sanitizer
Sarah Hoffmann [Tue, 12 May 2026 14:27:39 +0000 (16:27 +0200)]
generalise filter code of the delete tags sanitizer

6 months agoMerge pull request #4095 from lonvia/restrict-country-search
Sarah Hoffmann [Tue, 12 May 2026 11:59:34 +0000 (13:59 +0200)]
Merge pull request #4095 from lonvia/restrict-country-search

Do not search for countries when country restriction is in place

6 months agocheck for illegal sanitizer names
Sarah Hoffmann [Fri, 8 May 2026 19:50:50 +0000 (21:50 +0200)]
check for illegal sanitizer names

6 months agodo not search for countries when country retriction is in place
Sarah Hoffmann [Tue, 12 May 2026 07:27:56 +0000 (09:27 +0200)]
do not search for countries when country retriction is in place

6 months agoRemoves unused Set import and updates set type hints
Itz-Agasta [Mon, 11 May 2026 15:14:38 +0000 (20:44 +0530)]
Removes unused Set import and updates set type hints

6 months agoImproves geocoder reranking logic for locale-specific names
Itz-Agasta [Sat, 9 May 2026 15:35:43 +0000 (21:05 +0530)]
Improves geocoder reranking logic for locale-specific names

- Refines how result labels are aggregated for reranking by using sets of localized names instead of concatenated strings.

- Updates tests to reflect improved handling of locale-specific queries.

6 months agotest: add BDD scenario for locale-aware reranking (#3871)
Itz-Agasta [Sun, 3 May 2026 10:08:05 +0000 (15:38 +0530)]
test: add BDD scenario for locale-aware reranking (#3871)

Add a test scenario where a place with a non-English local name
and an English name:en alias competes against a place with only
an English name. Verifies that accept-language=en correctly

6 months agouse locale-aware names for query word matching
Itz-Agasta [Sun, 3 May 2026 10:07:15 +0000 (15:37 +0530)]
use locale-aware names for query word matching

When reranking search results, the word matching pool was built only
from display_name, which returns the local name (e.g., "Αθήνα" for
Athens, Greece). This caused results with translated names to receive
unfair distance penalties when the caller used accept-language.
Introduce _get_result_rerank_text() which builds the reranking text
using locale-aware name resolution from locales.display_name(). This
ensures that name variants like name:en are included in the word
matching pool when the caller requests a specific language.

6 months agoprepare release 5.3.2.post3
Sarah Hoffmann [Thu, 7 May 2026 18:56:11 +0000 (20:56 +0200)]
prepare release 5.3.2.post3

6 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Thu, 7 May 2026 18:36:06 +0000 (20:36 +0200)]
Merge remote-tracking branch 'upstream/master'

6 months agoMerge pull request #4090 from lonvia/filter-bad-refs
Sarah Hoffmann [Thu, 7 May 2026 17:06:09 +0000 (19:06 +0200)]
Merge pull request #4090 from lonvia/filter-bad-refs

Add sanitizer for suspicious ref values

6 months agofix new mypy warnings
Sarah Hoffmann [Thu, 7 May 2026 14:00:08 +0000 (16:00 +0200)]
fix new mypy warnings

6 months agoincrease minimum Python version for mypy to 3.10
Sarah Hoffmann [Thu, 7 May 2026 12:42:40 +0000 (14:42 +0200)]
increase minimum Python version for mypy to 3.10

Not raising the minimum required version yet.

6 months agoadd sanitizer for suspicious ref values
Sarah Hoffmann [Thu, 7 May 2026 11:45:18 +0000 (13:45 +0200)]
add sanitizer for suspicious ref values

Mostly for filtering ref tags from German post boxes.

7 months agoMerge pull request #4087 from lonvia/remove-special-cases-for-sk
Sarah Hoffmann [Sat, 2 May 2026 19:26:11 +0000 (21:26 +0200)]
Merge pull request #4087 from lonvia/remove-special-cases-for-sk

Remove ranking exceptions for Slovakia

7 months agoremove address level exceptions for Slovakia
Sarah Hoffmann [Sat, 2 May 2026 15:31:44 +0000 (17:31 +0200)]
remove address level exceptions for Slovakia

The country has been reorganised and now follows general conventions.

7 months agoprepare release 5.3.2.post2
Sarah Hoffmann [Fri, 1 May 2026 13:12:29 +0000 (15:12 +0200)]
prepare release 5.3.2.post2

Note: downgrading gunicorn because of
https://github.com/benoitc/gunicorn/discussions/3605

7 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Fri, 1 May 2026 13:10:03 +0000 (15:10 +0200)]
Merge remote-tracking branch 'upstream/master'

7 months agofix typo
Sarah Hoffmann [Fri, 1 May 2026 13:08:30 +0000 (15:08 +0200)]
fix typo

7 months agoMerge pull request #4086 from lonvia/fix-rank-11-boundaries
Sarah Hoffmann [Fri, 1 May 2026 06:32:03 +0000 (08:32 +0200)]
Merge pull request #4086 from lonvia/fix-rank-11-boundaries

Fix display of rank 11 boundaries

7 months agorank 11 is not always a postcode
Sarah Hoffmann [Thu, 30 Apr 2026 19:48:37 +0000 (21:48 +0200)]
rank 11 is not always a postcode

7 months agoMerge pull request #4085 from lonvia/partial-terms
Sarah Hoffmann [Thu, 30 Apr 2026 18:51:50 +0000 (20:51 +0200)]
Merge pull request #4085 from lonvia/partial-terms

Add partial property for tokenizer

7 months agoadd documentation for new partial attribute
Sarah Hoffmann [Thu, 30 Apr 2026 16:24:25 +0000 (18:24 +0200)]
add documentation for new partial attribute

7 months agotokenizer: allow to mark names as partial only
Sarah Hoffmann [Thu, 30 Apr 2026 13:12:19 +0000 (15:12 +0200)]
tokenizer: allow to mark names as partial only

These names will not be added as a full searchable token but only
with the partials they produce. Variants are still built as usual.

7 months agoMerge pull request #4083 from lonvia/icu-data-types
Sarah Hoffmann [Thu, 30 Apr 2026 07:43:56 +0000 (09:43 +0200)]
Merge pull request #4083 from lonvia/icu-data-types

Minor simplifications in ICU token generation code

7 months agostructurize housenumber tokens
Sarah Hoffmann [Wed, 29 Apr 2026 15:42:12 +0000 (17:42 +0200)]
structurize housenumber tokens

7 months agoslightly simplify name token cache
Sarah Hoffmann [Wed, 29 Apr 2026 14:38:04 +0000 (16:38 +0200)]
slightly simplify name token cache

7 months agosimplify name token set handling
Sarah Hoffmann [Wed, 29 Apr 2026 13:59:05 +0000 (15:59 +0200)]
simplify name token set handling

7 months agoicu: move constants in separate file
Sarah Hoffmann [Wed, 29 Apr 2026 09:50:18 +0000 (11:50 +0200)]
icu: move constants in separate file

7 months agoremove unused constant
Sarah Hoffmann [Wed, 29 Apr 2026 09:46:45 +0000 (11:46 +0200)]
remove unused constant

7 months agoMerge pull request #4049 from Itz-Agasta/uv
Sarah Hoffmann [Tue, 21 Apr 2026 07:48:44 +0000 (09:48 +0200)]
Merge pull request #4049 from Itz-Agasta/uv

Add uv support for development environment

7 months agoprepare release 5.3.2-post1
Sarah Hoffmann [Sun, 19 Apr 2026 08:11:37 +0000 (10:11 +0200)]
prepare release 5.3.2-post1

7 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Sun, 19 Apr 2026 08:09:50 +0000 (10:09 +0200)]
Merge remote-tracking branch 'upstream/master'

7 months agoMerge pull request #4077 from lonvia/fix-potential-null-in-place-delete
Sarah Hoffmann [Sat, 18 Apr 2026 22:28:45 +0000 (00:28 +0200)]
Merge pull request #4077 from lonvia/fix-potential-null-in-place-delete

Fix failure on non-null constraint when marking place for delete

7 months agoavoid null value for deferred, when no placex entry exists
Sarah Hoffmann [Sat, 18 Apr 2026 15:25:50 +0000 (17:25 +0200)]
avoid null value for deferred, when no placex entry exists

7 months agoRequire SQLAlchemy with asyncio extra
Itz-Agasta [Tue, 14 Apr 2026 19:40:32 +0000 (01:10 +0530)]
Require SQLAlchemy with asyncio extra

7 months agoUpdate development dependencies list
Itz-Agasta [Tue, 14 Apr 2026 19:00:35 +0000 (00:30 +0530)]
Update development dependencies list

7 months agoAdd runtime dependency group and update docs
Itz-Agasta [Tue, 14 Apr 2026 18:49:43 +0000 (00:19 +0530)]
Add runtime dependency group and update docs

7 months agoprepare release 5.3.1.post2
Sarah Hoffmann [Mon, 13 Apr 2026 18:10:45 +0000 (20:10 +0200)]
prepare release 5.3.1.post2

7 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Mon, 13 Apr 2026 14:40:39 +0000 (16:40 +0200)]
Merge remote-tracking branch 'upstream/master'

7 months agoMerge pull request #4073 from lonvia/area-updates
Sarah Hoffmann [Mon, 13 Apr 2026 14:40:06 +0000 (16:40 +0200)]
Merge pull request #4073 from lonvia/area-updates

Reorganise code for invalidation of dependent places on updates

7 months agoupdate of addr:place works now
Sarah Hoffmann [Mon, 13 Apr 2026 12:51:33 +0000 (14:51 +0200)]
update of addr:place works now

7 months agoadd more tests for updates of boundaries
Sarah Hoffmann [Mon, 13 Apr 2026 12:48:28 +0000 (14:48 +0200)]
add more tests for updates of boundaries

7 months agorework invalidation of places on update
Sarah Hoffmann [Mon, 13 Apr 2026 12:05:36 +0000 (14:05 +0200)]
rework invalidation of places on update

7 months agomove code for checking unwanted places into extra function
Sarah Hoffmann [Sun, 12 Apr 2026 13:41:43 +0000 (15:41 +0200)]
move code for checking unwanted places into extra function

This way it can be reused in the update code.

7 months agoprepare release 5.3.1.post1
Sarah Hoffmann [Fri, 10 Apr 2026 12:14:24 +0000 (14:14 +0200)]
prepare release 5.3.1.post1

7 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Fri, 10 Apr 2026 12:11:35 +0000 (14:11 +0200)]
Merge remote-tracking branch 'upstream/master'

7 months agoMerge pull request #4071 from lonvia/fix-associated-street-update
Sarah Hoffmann [Fri, 10 Apr 2026 10:07:40 +0000 (12:07 +0200)]
Merge pull request #4071 from lonvia/fix-associated-street-update

Make sure right index is hit when updating associatedStreet relations

7 months agoadd missing trigger migration for associated streets
Sarah Hoffmann [Fri, 10 Apr 2026 07:21:30 +0000 (09:21 +0200)]
add missing trigger migration for associated streets

7 months agosplit update of placex to accomodate partial indexes
Sarah Hoffmann [Fri, 10 Apr 2026 07:38:57 +0000 (09:38 +0200)]
split update of placex to accomodate partial indexes

7 months agoRemove version constraint for mypy in dependency list
Itz-Agasta [Sat, 4 Apr 2026 12:48:06 +0000 (18:18 +0530)]
Remove version constraint for mypy in dependency list

7 months agoAdd uv workspace support and pip dependency groups for development
Itz-Agasta [Sat, 4 Apr 2026 12:03:40 +0000 (17:33 +0530)]
Add uv workspace support and pip dependency groups for development

Add root pyproject.toml with uv workspace configuration
- Add [project] section so pip can auto-install nominatim-api and nominatim-db
- Add dependency groups (runtime, test, lint, types, docs, serve) for easy setup
- Simplify development docs to use 'pip install --group dev .' instead of long package list
- Remove gunicorn from serve group (deployment only)
- Pin mypy to <=1.19.1 for compatibility with existing code
- Add *.egg-info/ to .gitignore

With these changes, developers can set up with:
- uv:  uv sync
- pip: pip install --group dev .

7 months agoDocument uv as alternative dev env setup
Itz-Agasta [Tue, 24 Mar 2026 17:42:17 +0000 (23:12 +0530)]
Document uv as alternative dev env setup

7 months agoIntroduce pyproject.toml with uv workspace
Itz-Agasta [Tue, 24 Mar 2026 17:39:43 +0000 (23:09 +0530)]
Introduce pyproject.toml with uv workspace

Add a root pyproject.toml that defines a uv workspace over the existing
packaging/ directory and declares PEP 735 dependency groups for development
tools (test, lint, types, docs, serve).
These groups are ignored by pip and only activated when using uv, so the
existing virtualenv + pip workflow is unaffected. The 'dev' group includes
all sub-groups by default, so 'uv sync' installs everything needed for
development in one command.

8 months agoprepare release 5.3.0-post1
Sarah Hoffmann [Fri, 3 Apr 2026 19:56:01 +0000 (21:56 +0200)]
prepare release 5.3.0-post1

8 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Fri, 3 Apr 2026 19:53:07 +0000 (21:53 +0200)]
Merge remote-tracking branch 'upstream/master'

8 months agoprepare release 5.3.0
Sarah Hoffmann [Fri, 3 Apr 2026 19:08:37 +0000 (21:08 +0200)]
prepare release 5.3.0

8 months agoMerge pull request #4069 from lonvia/adapt-czech-boundaries
Sarah Hoffmann [Fri, 3 Apr 2026 18:34:05 +0000 (20:34 +0200)]
Merge pull request #4069 from lonvia/adapt-czech-boundaries

Adapt address ranking for various countries

8 months agoremove LGA boundaries in Australia
Sarah Hoffmann [Fri, 3 Apr 2026 16:01:01 +0000 (18:01 +0200)]
remove LGA boundaries in Australia

see https://community.openstreetmap.org/t/administrative-boundaries-for-non-administrative-areas-in-sydney-and-melbourne/140931

8 months agoremove purely administrative boundaries in Brazil
Sarah Hoffmann [Fri, 3 Apr 2026 15:24:44 +0000 (17:24 +0200)]
remove purely administrative boundaries in Brazil

8 months agoadapt ranks for Czech Republic to new admin levels
Sarah Hoffmann [Fri, 3 Apr 2026 15:01:35 +0000 (17:01 +0200)]
adapt ranks for Czech Republic to new admin levels

8 months agoMerge pull request #4067 from lonvia/postcode-geometry
Sarah Hoffmann [Fri, 3 Apr 2026 14:59:24 +0000 (16:59 +0200)]
Merge pull request #4067 from lonvia/postcode-geometry

Do not return box geometry for guessed postcodes

8 months agoMerge pull request #4066 from lonvia/boundary-matching
Sarah Hoffmann [Fri, 3 Apr 2026 08:00:21 +0000 (10:00 +0200)]
Merge pull request #4066 from lonvia/boundary-matching

Refuse to link boundary and places with wikidata mismatch

8 months agodo not return box geometry for guessed postcodes
Sarah Hoffmann [Thu, 2 Apr 2026 20:43:35 +0000 (22:43 +0200)]
do not return box geometry for guessed postcodes

8 months agorefuse to link boundary and places with wikidata mismatch
Sarah Hoffmann [Thu, 2 Apr 2026 18:50:38 +0000 (20:50 +0200)]
refuse to link boundary and places with wikidata mismatch

8 months agoMerge pull request #4065 from lonvia/update-sqlalchemy-schema
Sarah Hoffmann [Thu, 2 Apr 2026 15:42:10 +0000 (17:42 +0200)]
Merge pull request #4065 from lonvia/update-sqlalchemy-schema

Update sqlalchemy schema

8 months agoMerge pull request #4064 from lonvia/abbreviations-pakistan
Sarah Hoffmann [Thu, 2 Apr 2026 13:32:19 +0000 (15:32 +0200)]
Merge pull request #4064 from lonvia/abbreviations-pakistan

Add English abbreviations for Pakistan

8 months agoadapt tests to newly added table constraints
Sarah Hoffmann [Thu, 2 Apr 2026 13:30:35 +0000 (15:30 +0200)]
adapt tests to newly added table constraints

8 months agoadd missing non-null constraints in SQLAlchemy schema
Sarah Hoffmann [Thu, 2 Apr 2026 12:57:53 +0000 (14:57 +0200)]
add missing non-null constraints in SQLAlchemy schema

8 months agoMerge pull request #4063 from lonvia/sqlalchemy-dep
Sarah Hoffmann [Thu, 2 Apr 2026 12:39:42 +0000 (14:39 +0200)]
Merge pull request #4063 from lonvia/sqlalchemy-dep

Force installation of async requirement for SQLAlchemy

8 months agoadd English abbreviations for Pakistan
Sarah Hoffmann [Thu, 2 Apr 2026 10:07:56 +0000 (12:07 +0200)]
add English abbreviations for Pakistan

Derived from list provided by @bgo-eiu in
https://github.com/osm-search/Nominatim/pull/2747

8 months agoforce installation of async requirement for SQLAlchemy
Sarah Hoffmann [Thu, 2 Apr 2026 09:47:22 +0000 (11:47 +0200)]
force installation of async requirement for SQLAlchemy

8 months agoMerge pull request #4056 from harithilmi/expand-malay-abbreviations
Sarah Hoffmann [Thu, 2 Apr 2026 09:44:42 +0000 (11:44 +0200)]
Merge pull request #4056 from harithilmi/expand-malay-abbreviations

Expand Malay (ms) abbreviation variants for MY, SG, BN

8 months agoMerge pull request #4061 from lonvia/fix-types
Sarah Hoffmann [Thu, 2 Apr 2026 07:32:04 +0000 (09:32 +0200)]
Merge pull request #4061 from lonvia/fix-types

Fix newest mypy complaints

8 months agoremove unnecessary copy function for custom type
Sarah Hoffmann [Wed, 1 Apr 2026 19:36:45 +0000 (21:36 +0200)]
remove unnecessary copy function for custom type

8 months agofix named parameter for starlette
Sarah Hoffmann [Wed, 1 Apr 2026 19:13:39 +0000 (21:13 +0200)]
fix named parameter for starlette

8 months agoclean up unused sections in mypy.ini
Sarah Hoffmann [Wed, 1 Apr 2026 18:54:37 +0000 (20:54 +0200)]
clean up unused sections in mypy.ini