]>
git.openstreetmap.org Git - nominatim.git/log
marc tobias [Wed, 29 Jul 2026 22:16:55 +0000 (00:16 +0200)]
validate layer URL parameter values
Ayush Dhar Dubey [Wed, 15 Jul 2026 16:52:09 +0000 (22:22 +0530)]
add clean_multilingual_names sanitizer
Sarah Hoffmann [Tue, 28 Jul 2026 12:37:38 +0000 (14:37 +0200)]
Merge pull request #4153 from Itz-Agasta/require-postgresql-13
Require PostgreSQL 13 as minimum version
Itz-Agasta [Tue, 28 Jul 2026 11:47:16 +0000 (17:17 +0530)]
Require PostgreSQL 13 as minimum version
PostgreSQL 12 is out of support upstream and lacks operator class
parameters, which are needed to keep the ltree GiST indexes at a
reasonable size. Raise the minimum version to 13 and run the ubuntu-22
CI job against PostgreSQL 13.
Sarah Hoffmann [Mon, 27 Jul 2026 12:49:45 +0000 (14:49 +0200)]
Merge pull request #4152 from Itz-Agasta/fix/4148-empty-poi-results
Fix 500 error on category search without matching results
Itz-Agasta [Sat, 25 Jul 2026 18:21:29 +0000 (23:51 +0530)]
Return empty result list for category searches without matches
A /search request using the [key=value] category syntax together with a
near-phrase crashed with a 500 error whenever the search legitimately
found nothing.
Two places in ForwardGeocoder.lookup_pois() indexed into an empty list:
* sort_and_cut_results() accessed results[0] without checking that any
results were found. The guard was lost in
87a8c246 .
* execute_searches() accessed searches[0] when the near-phrase produced
no search interpretations at all. lookup_pois() guarded this with
'if query', which is always true because QueryStruct has no __bool__.
Use 'if searches' instead, as lookup() already does.
Fixes #4148
Sarah Hoffmann [Wed, 8 Jul 2026 07:13:10 +0000 (09:13 +0200)]
Merge pull request #4144 from RhinoDevel/patch-1
update_database.sh: Always execute nominatim index
RhinoDevel [Fri, 3 Jul 2026 12:46:41 +0000 (14:46 +0200)]
update_database.sh: Add empty photon_update string, if unused.
RhinoDevel [Fri, 3 Jul 2026 12:40:33 +0000 (14:40 +0200)]
Fix variable name.
RhinoDevel [Fri, 3 Jul 2026 12:35:16 +0000 (14:35 +0200)]
update_database.sh: Always execute nominatim index
The script was misleading by implying that the Photon update also does the indexing of the Nominatim database.
See: https://github.com/osm-search/Nominatim/discussions/4143
Sarah Hoffmann [Fri, 3 Jul 2026 09:25:16 +0000 (11:25 +0200)]
Merge pull request #4142 from lonvia/improve-attribute-meaning-in-query-node
Align meaning of attributes in query node
Sarah Hoffmann [Thu, 2 Jul 2026 08:55:27 +0000 (10:55 +0200)]
harmonize attributes in query node
All attributes referring to edges now refer to the outgoing edge.
Sarah Hoffmann [Thu, 2 Jul 2026 07:41:46 +0000 (09:41 +0200)]
Merge pull request #4106 from Itz-Agasta/category-support
Add ltree categories column for multi-tag OSM object support
Itz-Agasta [Wed, 1 Jul 2026 16:02:46 +0000 (21:32 +0530)]
Update BDD and Python tests for categories
Adapt test fixtures and assertions for the new categories column and single-row merge model. Verify that categories are generated, propagated, and queried correctly using ltree operators.
Itz-Agasta [Wed, 1 Jul 2026 16:01:43 +0000 (21:31 +0530)]
Add migration for categories on existing databases
Add a schema migration that introduces the categories ltree[]
column to place and placex, backfills it from existing class/type data and extratags->place values for rank_address < 26 with triggers disabled, creates the required indexes, and runs ANALYZE after the bulk update.
Itz-Agasta [Wed, 1 Jul 2026 16:00:27 +0000 (21:30 +0530)]
Update indexer boundary queries for categories
Change BoundaryRunner and Indexer SQL to use
categories <@ 'osm.boundary.administrative'
instead of class='boundary' AND type='administrative'.
Itz-Agasta [Wed, 1 Jul 2026 16:00:03 +0000 (21:30 +0530)]
Update SQL ranking and triggers to use ltree categories
Adapt is_rankable_place(), compute_place_rank(), and the
placex_update trigger to query the categories column using ltree
containment operators (<@) instead of class/type comparisons.
compute_place_rank() now iterates all categories and selects the
best rank. Boundary linking extracts the place type from
categories instead of extratags.
Itz-Agasta [Wed, 1 Jul 2026 15:59:17 +0000 (21:29 +0530)]
Add ltree category generation and single-row merge model in Lua
Introduce sanitize_label() and get_category() to derive ltree
categories from OSM class/type tags. Merge multi-tag OSM objects
into a single place row with all categories in the new ltree[]
column, replacing the previous one-row-per-tag write_place() /
write_row() model.
Also add build_extratags() and simplify the grab_name_parts()
fallback logic.
Itz-Agasta [Wed, 1 Jul 2026 15:57:41 +0000 (21:27 +0530)]
Add ltree categories column to place/placex schema
Add categories ltree[] column to place and placex tables with a conditional GIST index. Requires the ltree extension. Stores derived OSM categories as ltree paths for efficient containment queries on multi-tag objects.
Sarah Hoffmann [Sun, 28 Jun 2026 13:41:32 +0000 (15:41 +0200)]
Merge pull request #4139 from lonvia/country-info-for-indexer
Make sure countries are always initialised before calling indexer
Sarah Hoffmann [Sun, 28 Jun 2026 07:27:13 +0000 (09:27 +0200)]
make sure countries are always initialised before calling indexer
Sarah Hoffmann [Fri, 26 Jun 2026 12:08:28 +0000 (14:08 +0200)]
Merge pull request #4135 from mtmail/update-multiple-regions-documentation
utils - documentation still mentioned PHP scripts
marc tobias [Thu, 25 Jun 2026 20:20:05 +0000 (22:20 +0200)]
utils - documention still mentioned PHP scripts
Sarah Hoffmann [Tue, 23 Jun 2026 20:30:58 +0000 (22:30 +0200)]
Merge pull request #4132 from AyushDharDubey/fix/issue_3598
Fix Windows `ProactorEventLoop` incompatibility with psycopg async
Ayush Dhar Dubey [Tue, 23 Jun 2026 13:27:16 +0000 (18:57 +0530)]
update python windows requirement
Ayush Dhar Dubey [Mon, 22 Jun 2026 14:23:56 +0000 (19:53 +0530)]
add install CI for windows
Ayush Dhar Dubey [Mon, 22 Jun 2026 12:04:33 +0000 (17:34 +0530)]
add SelectorEventLoop for windows
Ayush Dhar Dubey [Sun, 21 Jun 2026 21:29:19 +0000 (02:59 +0530)]
fix regex: allow backward slash
Sarah Hoffmann [Sat, 20 Jun 2026 12:23:39 +0000 (14:23 +0200)]
Merge pull request #4130 from lonvia/avoid-creating-word-lookup-indexes
Move initial word statistics update into tokenizer finalization
Sarah Hoffmann [Mon, 15 Jun 2026 18:30:13 +0000 (20:30 +0200)]
move initial word statistics update into tokenizer finalization
This way we can avoid creating the lookup index on a word table that
will be replaced right after.
Sarah Hoffmann [Sat, 13 Jun 2026 19:50:31 +0000 (21:50 +0200)]
Merge pull request #4128 from lonvia/use-create-table-like
Preserve not-null constraints when recreating the word table
Sarah Hoffmann [Sat, 13 Jun 2026 08:31:26 +0000 (10:31 +0200)]
preserve constraints when recreating the word table
Sarah Hoffmann [Sat, 13 Jun 2026 07:00:28 +0000 (09:00 +0200)]
Merge pull request #4127 from lonvia/fix-isdigit
Use isdecimal() instead of isdigit() when converting to int
Sarah Hoffmann [Fri, 12 Jun 2026 19:38:15 +0000 (21:38 +0200)]
use isdecimal() instead of isdigit() when converting to int
Sarah Hoffmann [Fri, 12 Jun 2026 17:39:49 +0000 (19:39 +0200)]
Merge pull request #4126 from lonvia/cleanup-icu-tokenizer-code
Remove postcode analyser
Sarah Hoffmann [Fri, 12 Jun 2026 13:26:40 +0000 (15:26 +0200)]
CI: improve migration testing
Better tests for checking that updates still function afterwards.
Sarah Hoffmann [Fri, 12 Jun 2026 13:19:39 +0000 (15:19 +0200)]
remove use of postcode analyser
This is no longer needed as postcodes are now parsed out of the
query directly. Skips over loading the analyser with id @postcode
emitting a warning. Drops the now useless postcodes analyser.
Sarah Hoffmann [Fri, 12 Jun 2026 12:58:12 +0000 (14:58 +0200)]
remove unused postcode creation function
Sarah Hoffmann [Fri, 12 Jun 2026 09:48:15 +0000 (11:48 +0200)]
remove last traces of token_normalized_postcode() function
Sarah Hoffmann [Wed, 10 Jun 2026 18:01:51 +0000 (20:01 +0200)]
prepare release 5.3.2.post7
Sarah Hoffmann [Wed, 10 Jun 2026 17:36:01 +0000 (19:36 +0200)]
Merge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Wed, 10 Jun 2026 17:35:22 +0000 (19:35 +0200)]
Merge pull request #4124 from lonvia/rodavia-prefix-for-brazil
Add sanitizer to create 'Rodovia BR-XXX' name in Brazil
Sarah Hoffmann [Wed, 10 Jun 2026 09:18:02 +0000 (11:18 +0200)]
add sanitizer to create 'Rodovia BR-XXX' name in Brazil
Sarah Hoffmann [Tue, 9 Jun 2026 14:14:13 +0000 (16:14 +0200)]
Merge pull request #4122 from lonvia/more-type-aliases
Add some type aliases for better readability
Sarah Hoffmann [Tue, 9 Jun 2026 12:25:54 +0000 (14:25 +0200)]
remove typing workaround for Python < 3.9
Sarah Hoffmann [Tue, 9 Jun 2026 12:17:54 +0000 (14:17 +0200)]
add type alias for sanitizer main function
Sarah Hoffmann [Tue, 9 Jun 2026 10:00:19 +0000 (12:00 +0200)]
add type alias for PlaceName lists
Sarah Hoffmann [Tue, 9 Jun 2026 09:25:10 +0000 (11:25 +0200)]
Merge pull request #4121 from lonvia/improve-regex-matcher
Improvements to regex query preprocessor
Sarah Hoffmann [Mon, 8 Jun 2026 09:55:10 +0000 (11:55 +0200)]
prepare release 5.3.2.post6
Sarah Hoffmann [Mon, 8 Jun 2026 09:26:58 +0000 (11:26 +0200)]
strip replaced phrases
Sarah Hoffmann [Mon, 8 Jun 2026 09:24:13 +0000 (11:24 +0200)]
make sure 'replacements' exists and is of right type
Sarah Hoffmann [Mon, 8 Jun 2026 08:41:19 +0000 (10:41 +0200)]
add query preprocessor for IPs and long strings of short words
Sarah Hoffmann [Mon, 8 Jun 2026 08:46:09 +0000 (10:46 +0200)]
improve documentation and mention required 'replacements' parameter
Sarah Hoffmann [Mon, 8 Jun 2026 08:17:37 +0000 (10:17 +0200)]
Merge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Mon, 8 Jun 2026 08:10:56 +0000 (10:10 +0200)]
Merge pull request #4116 from AyushDharDubey/issue_4080_add-external-postcode-geometry-support
Add Support for External Postcode Geometry Import via JSONL Files
Sarah Hoffmann [Sun, 7 Jun 2026 13:42:13 +0000 (15:42 +0200)]
Merge pull request #4120 from osm-search/lonvia-patch-1
Add a line in CONTRIBUTING.md on agent-driven contributions
Sarah Hoffmann [Sun, 7 Jun 2026 09:52:10 +0000 (11:52 +0200)]
add hint of agent-driven PRs
Sarah Hoffmann [Sun, 7 Jun 2026 07:43:57 +0000 (09:43 +0200)]
Merge pull request #4119 from lonvia/improve-housenumber-handling
Enhance sanitizing for housenumbers
Sarah Hoffmann [Sat, 6 Jun 2026 16:21:08 +0000 (18:21 +0200)]
drop unit,floor,flats from search index
These cannot be searched meaningfully without a classifier.
Sarah Hoffmann [Sat, 6 Jun 2026 15:52:40 +0000 (17:52 +0200)]
be more restrict with accetable names for search index
Excludes all names with URLs in them and for address names also
anything with a =. The latter are mostly tagging errors where two
tags have been joined. Furthermore convert very long housenumbers
into names.
Ayush Dhar Dubey [Fri, 5 Jun 2026 19:08:28 +0000 (00:38 +0530)]
fix: exclude area pcs from csv import
Ayush Dhar Dubey [Wed, 3 Jun 2026 19:19:46 +0000 (00:49 +0530)]
update pc geom logic in postcode search
Ayush Dhar Dubey [Wed, 3 Jun 2026 18:57:33 +0000 (00:27 +0530)]
update database layout location_postcodes definition
Ayush Dhar Dubey [Thu, 21 May 2026 12:36:36 +0000 (18:06 +0530)]
update details for jsonl format
Ayush Dhar Dubey [Wed, 3 Jun 2026 18:29:39 +0000 (23:59 +0530)]
add test for jsonl files
Ayush Dhar Dubey [Wed, 3 Jun 2026 18:29:30 +0000 (23:59 +0530)]
add support for external postcode geometry
Ayush Dhar Dubey [Wed, 3 Jun 2026 18:29:10 +0000 (23:59 +0530)]
add is_area in location_postcodes
Sarah Hoffmann [Fri, 5 Jun 2026 07:33:55 +0000 (09:33 +0200)]
Merge pull request #4114 from BHARATH0153/feat/country-sanitizers
feat: add support for country-specific sanitizers #4098
BHARATH0153 [Thu, 4 Jun 2026 08:32:11 +0000 (14:02 +0530)]
refactor: add SanitizerRules alias, use dict, deduplicate step validation
BHARATH0153 [Tue, 2 Jun 2026 16:39:41 +0000 (22:09 +0530)]
Fix mypy no-redef: rename country_rules module variable
BHARATH0153 [Tue, 2 Jun 2026 07:03:51 +0000 (12:33 +0530)]
feat: add support for country-specific sanitizers
Add a sanitizers section in the country configuration to allow
providing sanitizers that only apply to a specific country.
Country-specific sanitizers run after the generic sanitizers
have finished.
The configuration is read from the 'sanitizers' key in each
country's entry in country_settings.yaml.
Sarah Hoffmann [Tue, 2 Jun 2026 11:52:24 +0000 (13:52 +0200)]
Merge pull request #4115 from lonvia/fix-package-build
Explicitly exclude source-only files from wheel builds
Sarah Hoffmann [Tue, 2 Jun 2026 08:45:02 +0000 (10:45 +0200)]
explicitly exclude source-only files from wheel builds
Sarah Hoffmann [Sun, 31 May 2026 14:00:44 +0000 (16:00 +0200)]
Merge pull request #4109 from lonvia/fuzzy/move-sanitizer-out-of-tokenizer
Move sanitizer and query preprocessing out of the ICU tokenizer
Sarah Hoffmann [Sat, 30 May 2026 18:27:41 +0000 (20:27 +0200)]
better naming for sanitized names
Sarah Hoffmann [Sat, 30 May 2026 12:49:03 +0000 (14:49 +0200)]
move documention for query processing into separate sections
Sarah Hoffmann [Sat, 30 May 2026 11:57:06 +0000 (13:57 +0200)]
move query processing setting into separate file
Sarah Hoffmann [Sat, 30 May 2026 10:05:34 +0000 (12:05 +0200)]
move query preprocessing out of ICU tokenizer
Normalization is moved back from a preprocessing function to
a first step in the tokenizer analysis.
Sarah Hoffmann [Fri, 29 May 2026 13:50:56 +0000 (15:50 +0200)]
move sanitizer documentation out of the tokenizer section
Sarah Hoffmann [Thu, 28 May 2026 20:25:53 +0000 (22:25 +0200)]
move sanitzier processing out of tokenizer
Sarah Hoffmann [Thu, 28 May 2026 17:01:32 +0000 (19:01 +0200)]
move sanitized names into PlaceInfo
Sarah Hoffmann [Fri, 29 May 2026 13:01:18 +0000 (15:01 +0200)]
Merge pull request #4108 from lonvia/reverse-area-race
Improve reverse geocoding near overlapping POIs
Sarah Hoffmann [Thu, 28 May 2026 14:18:10 +0000 (16:18 +0200)]
move sanitizer creation out of ICURuleLoader
Sarah Hoffmann [Thu, 28 May 2026 12:47:31 +0000 (14:47 +0200)]
refactor index runner to remove analyzer dependency
Sarah Hoffmann [Fri, 29 May 2026 11:13:16 +0000 (13:13 +0200)]
Merge pull request #4107 from lonvia/fix-ci-migration-test
CI: fix migration test by running actual migrated code
Sarah Hoffmann [Fri, 29 May 2026 10:00:37 +0000 (12:00 +0200)]
reverse: do not jump to POI nodes with different house numbers
Sarah Hoffmann [Wed, 27 May 2026 09:04:39 +0000 (11:04 +0200)]
reverse: make sure smaller POI area is returned when two areas overlap
Sarah Hoffmann [Fri, 29 May 2026 08:07:38 +0000 (10:07 +0200)]
CI: fix migration test by running actual migrated code
Sarah Hoffmann [Fri, 29 May 2026 07:08:42 +0000 (09:08 +0200)]
Merge pull request #4103 from lonvia/ignore-non-language-suffixes
Improve language-awareness of `name:left` and `name:right` tags
Sarah Hoffmann [Tue, 26 May 2026 14:10:19 +0000 (16:10 +0200)]
ignore :forward and :backward names
They duplicate name:left and name:right.
Sarah Hoffmann [Tue, 26 May 2026 14:07:45 +0000 (16:07 +0200)]
add :left and :right to the list of non-language suffixes
Sarah Hoffmann [Tue, 26 May 2026 14:02:48 +0000 (16:02 +0200)]
slightly optimise suffix matching
Sarah Hoffmann [Tue, 26 May 2026 13:53:10 +0000 (15:53 +0200)]
add new suffix-ignore parameter to language tagging sanatizer
Allows to specify suffixes which are not used as language
markers.
Sarah Hoffmann [Tue, 26 May 2026 12:24:25 +0000 (14:24 +0200)]
prepare release 5.3.2.post5
Sarah Hoffmann [Tue, 26 May 2026 07:47:35 +0000 (09:47 +0200)]
Merge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Mon, 25 May 2026 12:37:17 +0000 (14:37 +0200)]
Merge pull request #4101 from Itz-Agasta/artificial-postcodes
Add stable postcode refs for details lookup and search exclusion
Itz-Agasta [Sun, 24 May 2026 17:58:26 +0000 (23:28 +0530)]
Preserve postcode index usage for postcode refs
Removes hyphen normalization from postcode handling to match only on spaces,
ensuring consistency between API usage, documentation, and database queries.
Itz-Agasta [Sat, 23 May 2026 18:07:51 +0000 (23:37 +0530)]
Clarifies postcode reference format in API docs
Explains that spaces and hyphens in postcode IDs are replaced
with underscores in stable postcode references and adds new
examples for clarity. Improves guidance for constructing and
using postcode refs in API endpoints.
Itz-Agasta [Sat, 23 May 2026 18:07:24 +0000 (23:37 +0530)]
Add dedicated postcode param, stable IDs, normalised matching
Sarah Hoffmann [Fri, 22 May 2026 12:34:43 +0000 (14:34 +0200)]
Merge pull request #4099 from Janjko/master
Added the Croatian variants yaml