]> git.openstreetmap.org Git - nominatim.git/log
nominatim.git
6 months agoAdds layer filtering option to search command
Itz-Agasta [Wed, 28 Jan 2026 06:46:43 +0000 (12:16 +0530)]
Adds layer filtering option to search command

Introduces a cli argument to restrict search results
to specified data layers, enabling more targeted queries.

6 months agoFixup: add single-quote escaping within debug message
James Addison [Wed, 28 Jan 2026 01:27:53 +0000 (01:27 +0000)]
Fixup: add single-quote escaping within debug message

6 months agoAdds mock grants SQL file for import test
Itz-Agasta [Tue, 27 Jan 2026 12:25:51 +0000 (17:55 +0530)]
Adds mock grants SQL file for import test

6 months agoAdds option to grant web user read-only DB access
Itz-Agasta [Tue, 27 Jan 2026 12:24:10 +0000 (17:54 +0530)]
Adds option to grant web user read-only DB access

Introduces a command-line flag to grant read-only access to the web user for all tables, improving ease of permissions management during refresh operations.

6 months agoGrants read-only access after import
Itz-Agasta [Tue, 27 Jan 2026 12:23:25 +0000 (17:53 +0530)]
Grants read-only access after import

Adds execution of grant statements to provide read-only privileges
for the web user following table creation or via a dedicated function.
Facilitates easier post-import permission management.

6 months agoMoves db grant statements to dedicated script
Itz-Agasta [Tue, 27 Jan 2026 12:19:51 +0000 (17:49 +0530)]
Moves db grant statements to dedicated script

Centralizes all read-only access grants into a single SQL script, ensuring permissions are managed in one place.

6 months agoMerge pull request #3943 from Itz-Agasta/test_fix
Sarah Hoffmann [Sun, 25 Jan 2026 09:10:15 +0000 (10:10 +0100)]
Merge pull request #3943 from Itz-Agasta/test_fix

Tests: Replace eval() with ast.literal_eval() for safer parsing

6 months agorelease 5.2.0.post9
Sarah Hoffmann [Sat, 24 Jan 2026 15:27:30 +0000 (16:27 +0100)]
release 5.2.0.post9

6 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Sat, 24 Jan 2026 15:04:59 +0000 (16:04 +0100)]
Merge remote-tracking branch 'upstream/master'

6 months agoprepare release 5.2.0.post8
Sarah Hoffmann [Sat, 24 Jan 2026 14:59:12 +0000 (15:59 +0100)]
prepare release 5.2.0.post8

6 months agoSwitch to ast.literal_eval for dict parsing
Itz-Agasta [Wed, 21 Jan 2026 06:03:17 +0000 (11:33 +0530)]
Switch to  ast.literal_eval for dict parsing

Due to  some test data in the BDD feature files includes Python raw strings and escape sequences that standard json.loads() cannot parse switching to safer Python literal evaluation
for converting string representations of dictionaries.

6 months agoReplaces eval with json.loads for safer dict parsing
Itz-Agasta [Tue, 20 Jan 2026 16:24:08 +0000 (21:54 +0530)]
Replaces eval with json.loads for safer dict parsing

Switches from eval to json.loads when parsing string representations
of dictionaries to  prevent arbitrary code
execution.

6 months agoMerge pull request #3946 from lonvia/enable-entrances-for-reverse
Sarah Hoffmann [Fri, 23 Jan 2026 21:10:43 +0000 (22:10 +0100)]
Merge pull request #3946 from lonvia/enable-entrances-for-reverse

Enable entrance lookup for reverse and lookup

6 months agoMerge pull request #3906 from AyushDharDubey/fix/issue_2463-Use-search_name-table...
Sarah Hoffmann [Fri, 23 Jan 2026 19:52:40 +0000 (20:52 +0100)]
Merge pull request #3906 from AyushDharDubey/fix/issue_2463-Use-search_name-table-for-TIGER-data-imports-on-'dropped'-databases

Use `search_name` as fallback for TIGER imports when update tables are dropped

6 months agoMerge pull request #3945 from lonvia/fix-starlette-tests
Sarah Hoffmann [Fri, 23 Jan 2026 19:45:15 +0000 (20:45 +0100)]
Merge pull request #3945 from lonvia/fix-starlette-tests

Update Starlette tests to using their TestClient

6 months agoenable entrances for reverse and lookup
Sarah Hoffmann [Fri, 23 Jan 2026 16:38:47 +0000 (17:38 +0100)]
enable entrances for reverse and lookup

6 months agoupdate Starlette tests to using their TestClient
Sarah Hoffmann [Thu, 22 Jan 2026 16:24:36 +0000 (17:24 +0100)]
update Starlette tests to using their TestClient

6 months agofix mypy typing for Starlette state object (#3944)
Sri Charan Chittineni [Thu, 22 Jan 2026 12:21:34 +0000 (17:51 +0530)]
fix mypy typing for Starlette state object (#3944)

7 months agoMerge pull request #3939 from lonvia/more-table-constraints
Sarah Hoffmann [Wed, 14 Jan 2026 14:04:45 +0000 (15:04 +0100)]
Merge pull request #3939 from lonvia/more-table-constraints

Add NOT NULL and UNIQUE contraints on tables

7 months agoupdate test frozen db: new tiger import mechanism
Ayush Dhar Dubey [Fri, 9 Jan 2026 11:22:15 +0000 (16:52 +0530)]
update test frozen db: new tiger import mechanism

7 months agopermit import of tiger after freeze
Ayush Dhar Dubey [Fri, 9 Jan 2026 11:21:53 +0000 (16:51 +0530)]
permit import of tiger after freeze

7 months agoAdd fallback search mechanism for dropped databases lookup
Ayush Dhar Dubey [Thu, 11 Dec 2025 15:10:57 +0000 (20:40 +0530)]
Add fallback search mechanism for dropped databases lookup

7 months agodo not attempt to delete old data for newly created placex entries
Sarah Hoffmann [Wed, 7 Jan 2026 16:08:28 +0000 (17:08 +0100)]
do not attempt to delete old data for newly created placex entries

7 months agoadd NOT NULL and UNIQUE constraints where possible
Sarah Hoffmann [Wed, 7 Jan 2026 14:46:05 +0000 (15:46 +0100)]
add NOT NULL and UNIQUE constraints where possible

7 months agoignore countries without geometry or country code for location_area
Sarah Hoffmann [Wed, 7 Jan 2026 10:43:32 +0000 (11:43 +0100)]
ignore countries without geometry or country code for location_area

7 months agodo not insert entries with empty name into search name
Sarah Hoffmann [Wed, 7 Jan 2026 10:27:55 +0000 (11:27 +0100)]
do not insert entries with empty name into search name

7 months agoensure correct indexed_status transitions
Sarah Hoffmann [Wed, 7 Jan 2026 09:53:04 +0000 (10:53 +0100)]
ensure correct indexed_status transitions

7 months agomake sure that importance is always set to a non-null value
Sarah Hoffmann [Wed, 7 Jan 2026 09:29:45 +0000 (10:29 +0100)]
make sure that importance is always set to a non-null value

Secondary importance might return invalid values in some cases.

7 months agomake sure array_merge() never returns null
Sarah Hoffmann [Wed, 7 Jan 2026 09:22:03 +0000 (10:22 +0100)]
make sure array_merge() never returns null

7 months agoimmediately terminate indexing when a task catches an exception
Sarah Hoffmann [Wed, 7 Jan 2026 08:56:32 +0000 (09:56 +0100)]
immediately terminate indexing when a task catches an exception

7 months agoBDD: make sure randomly generated names always contain a letter
Sarah Hoffmann [Wed, 7 Jan 2026 08:38:49 +0000 (09:38 +0100)]
BDD: make sure randomly generated names always contain a letter

7 months agoAdd PR template (#3934)
otbutz [Mon, 5 Jan 2026 16:42:35 +0000 (17:42 +0100)]
Add PR template (#3934)

7 months agoMerge pull request #3930 from lonvia/remove-new-query-log-table
Sarah Hoffmann [Fri, 2 Jan 2026 08:58:05 +0000 (09:58 +0100)]
Merge pull request #3930 from lonvia/remove-new-query-log-table

Remove unused new_query_log table

7 months agoremove unused new_query_log table
Sarah Hoffmann [Thu, 1 Jan 2026 19:30:37 +0000 (20:30 +0100)]
remove unused new_query_log table

7 months agofix version counts
Sarah Hoffmann [Thu, 1 Jan 2026 13:42:12 +0000 (14:42 +0100)]
fix version counts

7 months agorelease 5.2.0.post7
Sarah Hoffmann [Thu, 1 Jan 2026 11:00:22 +0000 (12:00 +0100)]
release 5.2.0.post7

7 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Thu, 1 Jan 2026 10:59:46 +0000 (11:59 +0100)]
Merge remote-tracking branch 'upstream/master'

7 months agoignore postcode areas in countries without postcodes properly
Sarah Hoffmann [Thu, 1 Jan 2026 10:21:40 +0000 (11:21 +0100)]
ignore postcode areas in countries without postcodes properly

7 months agomake sure we use exactly the same table structure as osm2pgsql
Sarah Hoffmann [Tue, 30 Dec 2025 23:21:27 +0000 (00:21 +0100)]
make sure we use exactly the same table structure as osm2pgsql

7 months agoneed an analyse after the migration
Sarah Hoffmann [Tue, 30 Dec 2025 18:49:07 +0000 (19:49 +0100)]
need an analyse after the migration

7 months agogrant access right to www user for new postcode table
Sarah Hoffmann [Tue, 30 Dec 2025 16:48:33 +0000 (17:48 +0100)]
grant access right to www user for new postcode table

7 months agoMerge pull request #3926 from lonvia/rework-postcode-handling
Sarah Hoffmann [Tue, 30 Dec 2025 14:54:33 +0000 (15:54 +0100)]
Merge pull request #3926 from lonvia/rework-postcode-handling

Reorganise postcode handling

7 months agoanalyze postcode table during import
Sarah Hoffmann [Sat, 27 Dec 2025 09:20:19 +0000 (10:20 +0100)]
analyze postcode table during import

7 months agosimplify postcode area for lookups
Sarah Hoffmann [Tue, 23 Dec 2025 22:24:33 +0000 (23:24 +0100)]
simplify postcode area for lookups

7 months agoadapt BDD tests for new postcode table structure
Sarah Hoffmann [Tue, 23 Dec 2025 21:26:43 +0000 (22:26 +0100)]
adapt BDD tests for new postcode table structure

7 months agoadapt unit tests to new postcode algorithms
Sarah Hoffmann [Tue, 23 Dec 2025 19:17:43 +0000 (20:17 +0100)]
adapt unit tests to new postcode algorithms

7 months agoadd migration for new postcode table
Sarah Hoffmann [Tue, 23 Dec 2025 18:12:50 +0000 (19:12 +0100)]
add migration for new postcode table

7 months agoadapt search frontend to new postcode table
Sarah Hoffmann [Tue, 23 Dec 2025 18:10:01 +0000 (19:10 +0100)]
adapt search frontend to new postcode table

7 months agoset custom postcode extents for some countries
Sarah Hoffmann [Tue, 23 Dec 2025 14:50:55 +0000 (15:50 +0100)]
set custom postcode extents for some countries

7 months agorework postcode computation
Sarah Hoffmann [Tue, 23 Dec 2025 14:46:36 +0000 (15:46 +0100)]
rework postcode computation

Now adds areas to location_postcodes, ignores postcode points
inside areas and supports customizable extents.

7 months agoadd support for custom per-country postcode extents
Sarah Hoffmann [Tue, 23 Dec 2025 13:17:06 +0000 (14:17 +0100)]
add support for custom per-country postcode extents

7 months agochange confusing value in debug output for missing importance
Sarah Hoffmann [Tue, 23 Dec 2025 13:11:45 +0000 (14:11 +0100)]
change confusing value in debug output for missing importance

7 months agoreorganise layout of location_postcode table
Sarah Hoffmann [Tue, 23 Dec 2025 11:13:19 +0000 (12:13 +0100)]
reorganise layout of location_postcode table

Also renames the table as this will make it easier to migrate.

7 months agodrop new place sub-tables on freezing
Sarah Hoffmann [Tue, 23 Dec 2025 10:41:35 +0000 (11:41 +0100)]
drop new place sub-tables on freezing

7 months agoremove special casing for postcodes in trigger code
Sarah Hoffmann [Tue, 23 Dec 2025 10:39:34 +0000 (11:39 +0100)]
remove special casing for postcodes in trigger code

7 months agoput postcodes in extra table on import
Sarah Hoffmann [Tue, 23 Dec 2025 09:56:53 +0000 (10:56 +0100)]
put postcodes in extra table on import

7 months agoMerge pull request #3925 from Aditya30ag/fix-typo-place-addressline-test
Sarah Hoffmann [Tue, 30 Dec 2025 13:36:59 +0000 (14:36 +0100)]
Merge pull request #3925 from Aditya30ag/fix-typo-place-addressline-test

Fix typo in place_addressline table name in tests

7 months agoFix typo in place_addressline table name in tests
Aditya30ag [Tue, 30 Dec 2025 12:10:08 +0000 (17:40 +0530)]
Fix typo in place_addressline table name in tests

7 months agoMerge pull request #3919 from 28Deepakpandey/Fix-docs-locale-typo
Sarah Hoffmann [Sun, 28 Dec 2025 14:55:49 +0000 (15:55 +0100)]
Merge pull request #3919 from 28Deepakpandey/Fix-docs-locale-typo

Fix: Locale → Locales references in docs

7 months agoFix: corrected Locale → Locales references and ensured proper casing in docs
28Deepakpandey [Thu, 25 Dec 2025 21:16:26 +0000 (02:46 +0530)]
Fix: corrected Locale → Locales references and ensured proper casing in docs

7 months agorelease 5.2.0.post6
Sarah Hoffmann [Mon, 22 Dec 2025 16:03:44 +0000 (17:03 +0100)]
release 5.2.0.post6

7 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Mon, 22 Dec 2025 15:39:49 +0000 (16:39 +0100)]
Merge remote-tracking branch 'upstream/master'

7 months agoMerge pull request #3913 from AyushDharDubey/fix/issue_3909
Sarah Hoffmann [Mon, 22 Dec 2025 15:38:27 +0000 (16:38 +0100)]
Merge pull request #3913 from AyushDharDubey/fix/issue_3909

Reuse Configuration instance in Locales

8 months agoupdate Locales constructor:
Ayush Dhar Dubey [Sat, 20 Dec 2025 13:44:20 +0000 (19:14 +0530)]
update Locales constructor:
expect output names as argument and avoid redundant configuration initialization

8 months agofix: ensure Locales is not initialized when provided in options
Ayush Dhar Dubey [Sat, 20 Dec 2025 13:42:15 +0000 (19:12 +0530)]
fix: ensure Locales is not initialized when provided in options

8 months agoMerge pull request #3910 from lonvia/update-ps-names
Sarah Hoffmann [Mon, 15 Dec 2025 20:16:56 +0000 (21:16 +0100)]
Merge pull request #3910 from lonvia/update-ps-names

Update default names for Palestinian Territories

8 months agoupdate default names for Palestinian Territories
Sarah Hoffmann [Mon, 15 Dec 2025 18:25:15 +0000 (19:25 +0100)]
update default names for Palestinian Territories

8 months agoMerge pull request #3901 from AyushDharDubey/fix/issue_3829-use-mwparserfromhell...
Sarah Hoffmann [Mon, 8 Dec 2025 10:51:50 +0000 (11:51 +0100)]
Merge pull request #3901 from AyushDharDubey/fix/issue_3829-use-mwparserfromhell-to-parse-sp-wiki-page

Replace regex with `mwparserfromhell` based MW WikiCode Parsing for Special Phrases

8 months agoadd mwparserfromhell to apt prerequisites for CI build
Ayush Dhar Dubey [Mon, 8 Dec 2025 10:21:35 +0000 (15:51 +0530)]
add mwparserfromhell to apt prerequisites for CI build

8 months agorelease 5.2.0.post5
Sarah Hoffmann [Mon, 8 Dec 2025 09:36:04 +0000 (10:36 +0100)]
release 5.2.0.post5

8 months agoupdate new dependency instructions: mwparserfromhell
Ayush Dhar Dubey [Mon, 8 Dec 2025 09:31:35 +0000 (15:01 +0530)]
update new dependency instructions: mwparserfromhell

8 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Mon, 8 Dec 2025 08:51:02 +0000 (09:51 +0100)]
Merge remote-tracking branch 'upstream/master'

8 months agoMerge pull request #3902 from lonvia/fix-only-closest-housenumber
Sarah Hoffmann [Mon, 8 Dec 2025 08:48:29 +0000 (09:48 +0100)]
Merge pull request #3902 from lonvia/fix-only-closest-housenumber

Reverse: only return housenumbers near street

8 months agouse mwparserfromhell to parse SP wiki page reliably
Ayush Dhar Dubey [Sun, 7 Dec 2025 17:07:31 +0000 (22:37 +0530)]
use mwparserfromhell to parse SP wiki page reliably

8 months agotest for cell-per-line format
Ayush Dhar Dubey [Sun, 7 Dec 2025 17:06:50 +0000 (22:36 +0530)]
test for cell-per-line format

8 months agoupdate sp test content
Ayush Dhar Dubey [Sun, 7 Dec 2025 17:04:24 +0000 (22:34 +0530)]
update sp test content
add latest <generator>MediaWiki 1.43.5</generator>
add test case for one-row-per-line

8 months agoreverse: only return housenumbers near street
Sarah Hoffmann [Sun, 7 Dec 2025 10:00:23 +0000 (11:00 +0100)]
reverse: only return housenumbers near street

8 months agorelease 5.2.0.post4
Sarah Hoffmann [Sun, 7 Dec 2025 09:10:56 +0000 (10:10 +0100)]
release 5.2.0.post4

8 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Sun, 7 Dec 2025 08:40:39 +0000 (09:40 +0100)]
Merge remote-tracking branch 'upstream/master'

8 months agoMerge pull request #3899 from lonvia/improve-reverse-performance
Sarah Hoffmann [Sun, 7 Dec 2025 08:39:10 +0000 (09:39 +0100)]
Merge pull request #3899 from lonvia/improve-reverse-performance

Streamline reverse lookup slightly

8 months agoavoid extra query for finding closest housenumber in reverse
Sarah Hoffmann [Fri, 5 Dec 2025 16:09:13 +0000 (17:09 +0100)]
avoid extra query for finding closest housenumber in reverse

8 months agoreverse: avoid interpolation lookup when result is already perfect
Sarah Hoffmann [Thu, 4 Dec 2025 20:21:47 +0000 (21:21 +0100)]
reverse: avoid interpolation lookup when result is already perfect

8 months agoMerge pull request #3898 from lonvia/fix-country-restriction
Sarah Hoffmann [Thu, 4 Dec 2025 19:03:14 +0000 (20:03 +0100)]
Merge pull request #3898 from lonvia/fix-country-restriction

Fix comparision between country tokens and country restriction

8 months agofix comparision between countr tokens and country restriction
Sarah Hoffmann [Thu, 4 Dec 2025 17:28:04 +0000 (18:28 +0100)]
fix comparision between countr tokens and country restriction

8 months agoMerge pull request #3897 from lonvia/test-psycopg-33
Sarah Hoffmann [Thu, 4 Dec 2025 16:10:55 +0000 (17:10 +0100)]
Merge pull request #3897 from lonvia/test-psycopg-33

Allow psycopg 3.3 back

8 months agoignore typing isssue
Sarah Hoffmann [Tue, 2 Dec 2025 16:08:11 +0000 (17:08 +0100)]
ignore typing isssue

8 months agoexclude psycopg 3.3.0 which breaks named cursors
Sarah Hoffmann [Tue, 2 Dec 2025 14:19:36 +0000 (15:19 +0100)]
exclude psycopg 3.3.0 which breaks named cursors

8 months agorelease 5.2.0.post3
Sarah Hoffmann [Tue, 2 Dec 2025 12:20:18 +0000 (13:20 +0100)]
release 5.2.0.post3

8 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Tue, 2 Dec 2025 11:50:30 +0000 (12:50 +0100)]
Merge remote-tracking branch 'upstream/master'

8 months agoMerge pull request #3895 from lonvia/flaky-test
Sarah Hoffmann [Tue, 2 Dec 2025 11:46:43 +0000 (12:46 +0100)]
Merge pull request #3895 from lonvia/flaky-test

Fix flaky test around postcode word match penalties

8 months agofix flaky test around postcode word match penalties
Sarah Hoffmann [Tue, 2 Dec 2025 10:15:37 +0000 (11:15 +0100)]
fix flaky test around postcode word match penalties

8 months agoMerge pull request #3894 from lonvia/country-names-with-word-lookup
Sarah Hoffmann [Mon, 1 Dec 2025 13:54:24 +0000 (14:54 +0100)]
Merge pull request #3894 from lonvia/country-names-with-word-lookup

Add normalized form of country names to coutry tokens in word table

8 months agoavoid most recent psycopg 3.3 release
Sarah Hoffmann [Mon, 1 Dec 2025 13:23:36 +0000 (14:23 +0100)]
avoid most recent psycopg 3.3 release

8 months agoadd migration for changed country token format
Sarah Hoffmann [Thu, 27 Nov 2025 15:51:29 +0000 (16:51 +0100)]
add migration for changed country token format

8 months agoadapt tests to new country token format
Sarah Hoffmann [Thu, 27 Nov 2025 15:05:49 +0000 (16:05 +0100)]
adapt tests to new country token format

8 months agoadd normalised country name to word table
Sarah Hoffmann [Thu, 27 Nov 2025 11:00:47 +0000 (12:00 +0100)]
add normalised country name to word table

Country tokens now follow the usual convetion of having the
normalized version in the word column and the extra info about the
country code in the info column.

8 months agoprepare release 5.2.0.post2
Sarah Hoffmann [Mon, 1 Dec 2025 11:05:14 +0000 (12:05 +0100)]
prepare release 5.2.0.post2

8 months agoMerge remote-tracking branch 'upstream/master'
Sarah Hoffmann [Mon, 1 Dec 2025 10:36:49 +0000 (11:36 +0100)]
Merge remote-tracking branch 'upstream/master'

8 months agoMerge pull request #3893 from lonvia/nature-reserve
Sarah Hoffmann [Mon, 1 Dec 2025 10:36:17 +0000 (11:36 +0100)]
Merge pull request #3893 from lonvia/nature-reserve

Prefer leisure=nature_reserve as main tag over boundary=protected_area

8 months agoprefer leisure=nature_reserve as main tag
Sarah Hoffmann [Mon, 1 Dec 2025 08:47:55 +0000 (09:47 +0100)]
prefer leisure=nature_reserve as main tag