Commit Graph

5487 Commits

Author SHA1 Message Date
Sarah Hoffmann
2097a36761 Merge pull request #4033 from lonvia/update-actions
CI: update actions to latest versions
2026-03-15 14:11:07 +01:00
Sarah Hoffmann
4e57dd1719 CI: remove codespell 2026-03-15 10:54:15 +01:00
Sarah Hoffmann
2a3a5c268f CI: update version of action scripts 2026-03-15 10:53:47 +01:00
Sarah Hoffmann
9e6a96302a Merge pull request #4032 from lonvia/clean-up-settings
Remove unused settings
2026-03-15 10:49:17 +01:00
Sarah Hoffmann
b147c1c6ee Merge pull request #4027 from lonvia/contributing-amandments
Amandments to the CONTRIBUTING guidelines
2026-03-11 11:02:16 +01:00
Sarah Hoffmann
1ec6ce9a22 increse recommended space for flatnode file 2026-03-11 11:00:37 +01:00
Sarah Hoffmann
93b44eaad7 remove unused PROXY settings 2026-03-11 10:58:08 +01:00
Sarah Hoffmann
13bc49c1c3 remove unused USE_AUX_LOCATION_DATA setting 2026-03-11 10:55:23 +01:00
Sarah Hoffmann
821e5744b3 add links to forum and discussions to CONTRIBUTING 2026-03-11 10:22:43 +01:00
Sarah Hoffmann
55ae5f7bdc updates on coding style and add permitted style changes 2026-03-11 10:18:15 +01:00
Sarah Hoffmann
03b0a35c0a add a hint on running CI before opening a PR 2026-03-11 10:08:47 +01:00
Sarah Hoffmann
c44cac4c22 Merge pull request #4020 from kad-link/fix/add-admin-level-in-extratags
fix: add admin_level in extratags for boundary=administrative
2026-03-10 22:42:45 +01:00
Sri Charan Chittineni
b71389274b add BDD scenario for admin_level when boundary=administrative 2026-03-10 06:49:19 +00:00
Sri Charan Chittineni
c24bc292ea add unit tests for admin_level when boundary=administrative 2026-03-09 20:00:32 +00:00
Sarah Hoffmann
f11b21b0ba Merge pull request #4024 from lonvia/remove-fallback-importance
Clean up importance computation
2026-03-09 17:05:48 +01:00
Sarah Hoffmann
cd84386004 add migration to backfill missing importance values 2026-03-09 10:17:04 +01:00
Sarah Hoffmann
7a8a09ca78 streamline selected columns in search CTEs 2026-03-09 10:05:31 +01:00
Sarah Hoffmann
7bbfb4b972 drop search_rank column from search_name
This is no longer needed for the initial lookup.
2026-03-09 10:05:31 +01:00
Sarah Hoffmann
46dfb12844 remove importance fallbacks in search queries 2026-03-09 10:05:31 +01:00
Sarah Hoffmann
a16c698fb2 enforce presence of importance value in placex 2026-03-09 10:05:31 +01:00
Sri Charan Chittineni
2b0c18d333 modify import paths to helpers.py 2026-03-09 05:08:05 +00:00
Sri Charan Chittineni
b195550c07 add _add_admin_level helper function to helpers.py 2026-03-09 04:59:20 +00:00
Sri CHaRan
11e458ca47 add admin_level to extratags for XML and details API endpoint 2026-03-08 19:32:01 +05:30
Sri CHaRan
047e9bc4ad add admin_level to extatags in JSON format 2026-03-08 19:29:33 +05:30
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
639f05fecc docs: update database layout in developer section 2026-03-04 16:29:24 +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
b71543b03b add test for new interpolation variants 2026-03-04 16:29:24 +01:00
Sarah Hoffmann
c25204ce31 adapt BDD tests to separate interpolation table 2026-03-04 16:29:24 +01:00
Sarah Hoffmann
b43116ff52 BDD tests: factor out insert sql code 2026-03-04 16:29:24 +01:00
Sarah Hoffmann
c0f1aeea4d adapt unit tests to use separate interpolation table 2026-03-04 16:29:24 +01:00
Sarah Hoffmann
c2d6821f2f adapt interpolation handling to use separate place_interpolation table 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
e93c6809a9 import interpolation into separate place table 2026-03-04 16:29:24 +01:00
Sarah Hoffmann
e8836a91bb Merge pull request #4011 from lonvia/fix-expected-count-hnr-search-by-addr
Adjust expected count when doing housenumber search by address
2026-03-04 16:23:39 +01:00
Sarah Hoffmann
fd3dc5aeab adjust expected count when doing housenumber search by address 2026-03-04 11:26:17 +01:00
Itz-Agasta
36a364ec25 Adds test for locale-sensitive country name matching
Introduces a scenario to verify that a country's alternate-language name
does not dominate search results when the requested locale differs.
Ensures correct result selection for locale-aware geocoding.

Relates to #3210
2026-03-03 18:08:05 +05:30
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
d7249a135b Merge pull request #4009 from jonas-endter-optimax-energy/fix-documentation-wikipedia-data-link
fix link to importance data in documentation
2026-03-02 19:34:49 +01:00
Jonas Endter
757a2a6cd8 fix link to importance data in documentation 2026-03-02 16:38:11 +01:00
Sarah Hoffmann
6c00169666 Merge pull request #3997 from lonvia/fix-postcode-index
Reenable index on centroid column for location_postcodes
2026-02-22 17:20:15 +01:00
Sarah Hoffmann
f0d32501e4 location_postcodes does geometry lookups on centroid 2026-02-22 15:51:38 +01:00
Sarah Hoffmann
3e35d7fe26 Merge pull request #3996 from lonvia/improved-postcode-import
Avoid updates on initial filling of postcode table
2026-02-22 13:12:49 +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
Sarah Hoffmann
af9458a601 Merge pull request #3981 from Itz-Agasta/test
Implement Lazy Loading Search Endpoint
2026-02-18 19:38:05 +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