Sarah Hoffmann
d43e95f177
Merge pull request #4012 from lonvia/interpolation-separation
...
Move interpolations into a separate table
2026-03-04 17:27:02 +01:00
Sarah Hoffmann
e22dda2a86
Merge pull request #3995 from Itz-Agasta/exp
...
Add Language-aware country penalty in forward geocoding
2026-03-04 17:24:46 +01:00
Sarah Hoffmann
d759b6ed00
add migration for interpolation tables
2026-03-04 16:29:24 +01:00
Sarah Hoffmann
abd5cbada6
revert importing of housenumber interpolations
2026-03-04 16:29:24 +01:00
Sarah Hoffmann
a115eeeb40
copy interpolation data from new place_interpolation table
2026-03-04 16:29:24 +01:00
Sarah Hoffmann
fd3dc5aeab
adjust expected count when doing housenumber search by address
2026-03-04 11:26:17 +01:00
Itz-Agasta
9c2d4f4285
Adds language-aware country penalty in forward geocoding
...
Threads the caller's Accept-Language preference into ForwardGeocoder
and uses it in rerank_by_query to check whether the query matches the
localized name of a country result.
If the caller's locale renders the country name differently (e.g. pt-BR
gives "Brasil" ≠ "Brasilia"), the country's importance is added as an
accuracy penalty, neutralising its dominance over lower-ranked places.
If the locale matches (e.g. Finnish gives "Brasilia" = "Brasilia"),
no penalty is applied and the country correctly wins.
2026-03-03 18:06:22 +05:30
Sarah Hoffmann
c81fb58b63
Merge pull request #3971 from jayaddison/issue-3969/indexer-avoid-addressrank-loop
...
Indexer: allow 'has_pending' to consider address-rank subsets
2026-03-02 22:02:06 +01:00
Sarah Hoffmann
fff5858b53
add option to force a postcode reimport
2026-02-21 13:03:04 +01:00
Sarah Hoffmann
2507d5a298
avoid updates on initial filling of postcode table
2026-02-20 18:53:48 +01:00
Itz-Agasta
855f451a5f
Adds lazy loading for search endpoint availability
...
Introduces a mechanism to defer the search endpoint's availability check until the first request, improving startup robustness. If the search table is unavailable due to DB issues, the endpoint now responds with a 503 or 404 as appropriate, and retries the check on subsequent requests. This ensures that downtime or partial DB failures no longer prevent the API from initializing or serving reverse-only mode.
2026-02-18 21:46:55 +05:30
Sarah Hoffmann
9ac56c2078
add support for expanding interpolations on housenumbers
2026-02-18 11:52:21 +01:00
James Addison
8c3c1f0a15
Indexer: allow has_pending to consider address-rank subsets
2026-02-15 23:40:26 +00:00
Sarah Hoffmann
70b9140f13
pass reverse-only as a separate parameter
...
... instead of hacking the internal structures of SQLPreprocessor
2026-02-13 11:12:23 +01:00
Sarah Hoffmann
aa42dc8a93
fix potential cancelling race with full queue
2026-02-12 20:44:04 +01:00
Sarah Hoffmann
b995803c66
Merge pull request #3979 from jayaddison/issue-2714-prep/extract-rank-zero-specialcasing
...
Indexer: relocate zero-ranked-address indexing
2026-02-11 15:05:28 +01:00
James Addison
310d6e3c92
Indexer: relocate zero-ranked-address indexing
2026-02-10 11:51:18 +00:00
Sarah Hoffmann
7a3ea55f3d
ignore tables with odd names in SQLPreprocessor
2026-02-10 11:40:52 +01:00
Sarah Hoffmann
73590baf15
use psycopg.sql for SQL building in tokenizer
2026-02-10 11:39:19 +01:00
Sarah Hoffmann
e17d0cb5cf
only allow alphanumeric and dash in DATABASE_WEBUSER
...
This variable is used a lot in raw SQL. Avoid injection issues.
2026-02-10 11:39:17 +01:00
Sarah Hoffmann
615804b1b3
Merge pull request #3978 from jayaddison/issue-2714-prep/index-boundaries-method-signature-nitpick
...
Refactor: add default params to Indexer.index_boundaries
2026-02-10 09:45:29 +01:00
Sarah Hoffmann
79bbdfd55c
Merge pull request #3975 from kad-link/fix/utf8-encoding-clean
...
Fix: Enforce explicit UTF-8 encoding in file I/O
2026-02-10 09:32:06 +01:00
James Addison
509f59b193
Refactor: add default params to index_boundaries
2026-02-09 21:36:30 +00:00
Sri CHaRan
f84b279540
fix: add utf-8 encoding in read-write files
2026-02-10 00:38:40 +05:30
remo-lab
ae7301921a
Fix SQL injection in truncate_data_tables
...
Signed-off-by: remo-lab <remopanda7@gmail.com >
2026-02-05 17:04:10 +05:30
Sarah Hoffmann
cc9c8963f3
Merge pull request #3949 from Itz-Agasta/try
...
Feat: Add admin function for granting access to read-only user
2026-02-02 09:53:24 +01:00
Itz-Agasta
45972811e3
Preserve import error tables during freeze
...
- Remove 'import_polygon_%' from UPDATE_TABLES to keep import_polygon_error
and import_polygon_delete tables in frozen databases.
- These tables contain permanent import error tracking data and should not
be deleted during freeze. The ro-access grant system expects them to exist
in all database states.
2026-01-31 22:50:18 +05:30
Itz-Agasta
e021f558bf
Restore grants for dynamic tables in tokenizer, migration, and tiger import
2026-01-30 20:43:57 +05:30
AmmarYasser455
fcc5ce3f92
docs: fix multiple typos in documentation and source code
2026-01-30 12:13:23 +02:00
Itz-Agasta
6ad87db1eb
Updates layer selection to allow optional default
...
- Modifies layer argument handling to permit no default layers appropriate.
- Update the help text for the layer parameter in the reverse command
2026-01-29 11:33:21 +05:30
Itz-Agasta
bf6eb01d68
Adds layer filtering option to search command
...
Introduces a cli argument to restrict search results
to specified data layers, enabling more targeted queries.
2026-01-28 12:16:43 +05:30
Itz-Agasta
58cae70596
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.
2026-01-27 17:54:10 +05:30
Itz-Agasta
bf0ee6685b
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.
2026-01-27 17:53:25 +05:30
Itz-Agasta
ff1f1b06d9
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.
2026-01-27 17:49:51 +05:30
Sarah Hoffmann
fe773c12b2
Merge pull request #3946 from lonvia/enable-entrances-for-reverse
...
Enable entrance lookup for reverse and lookup
2026-01-23 22:10:43 +01:00
Sarah Hoffmann
cc96912580
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
2026-01-23 20:52:40 +01:00
Sarah Hoffmann
6a6a064ef7
enable entrances for reverse and lookup
2026-01-23 17:38:47 +01:00
Sri Charan Chittineni
c4dc2c862e
fix mypy typing for Starlette state object ( #3944 )
2026-01-22 13:21:34 +01:00
Ayush Dhar Dubey
2698382552
permit import of tiger after freeze
2026-01-09 17:35:01 +05:30
Sarah Hoffmann
a4a2176ded
immediately terminate indexing when a task catches an exception
2026-01-07 09:58:40 +01:00
Sarah Hoffmann
2e2ce2c979
fix version counts
2026-01-01 14:42:12 +01:00
Sarah Hoffmann
99643aa0e9
ignore postcode areas in countries without postcodes properly
2026-01-01 11:21:40 +01:00
Sarah Hoffmann
c05b8f241c
make sure we use exactly the same table structure as osm2pgsql
2025-12-31 00:21:27 +01:00
Sarah Hoffmann
da94d7eea3
need an analyse after the migration
2025-12-30 19:49:07 +01:00
Sarah Hoffmann
f9864b7ec7
grant access right to www user for new postcode table
2025-12-30 17:48:33 +01:00
Sarah Hoffmann
42d139a5d0
analyze postcode table during import
2025-12-30 15:21:20 +01:00
Sarah Hoffmann
f2110e12d6
simplify postcode area for lookups
2025-12-30 15:21:20 +01:00
Sarah Hoffmann
deb6654cfd
add migration for new postcode table
2025-12-30 15:20:46 +01:00
Sarah Hoffmann
6a67cfcddf
adapt search frontend to new postcode table
2025-12-30 15:20:46 +01:00
Sarah Hoffmann
d1cb578535
rework postcode computation
...
Now adds areas to location_postcodes, ignores postcode points
inside areas and supports customizable extents.
2025-12-30 15:20:46 +01:00