Harith Hilmi [Sat, 28 Mar 2026 09:56:50 +0000 (17:56 +0800)]
Expand Malay (ms) abbreviation variants for MY, SG, BN
The existing variants-ms.yaml only had 8 entries. This expands it to
cover common abbreviations used across Malaysia, Singapore, and Brunei,
organized by country where needed.
Tested on a local Nominatim instance (Docker, mediagis/nominatim:4.4)
with Malaysia-Singapore-Brunei extract. Verified searches like
"Jln Bukit Bintang", "Lrg Petaling", "Kg Baru", "Tmn Tun Dr Ismail",
"Sg Buloh", "Bt Purmei" all resolve correctly.
AI-assisted: Claude was used to help organize and test these variants.
All abbreviations were verified against JUPEM guidelines and OSM wiki
sources, and tested on a real Nominatim installation.
Itz-Agasta [Thu, 19 Mar 2026 16:06:52 +0000 (21:36 +0530)]
Address review feedback for associatedStreet support
- Split placex query into UNION ALL for ways/relations to enable
partial index usage (idx_placex_osmid_w/r)
- Use osm2pgsql_properties table to check db_format in migration
- Remove legacy planet_osm_rels code paths now that migration exists
- Remove unnecessary Jinja conditionals around place_associated_street
- Filter node-type streets in Lua for data consistency
- Align test table columns
Itz-Agasta [Fri, 13 Mar 2026 12:04:58 +0000 (17:34 +0530)]
Adds tests and support for updating associatedStreet relations
Improves handling of house-parenting when associatedStreet relations
are added, updated, or removed. Mirrors relation data in a dedicated
table and simulates relation updates to ensure correct parent assignment
in downstream logic. and Update import tests with explicit role handling
Itz-Agasta [Fri, 13 Mar 2026 12:02:16 +0000 (17:32 +0530)]
Adds migration for associatedStreet relation support
Introduces a new database table to store associatedStreet relations,
enabling better handling of place-street associations. Handles both
current and legacy database formats, warning when a full reimport
is needed for older schemas. Updates version to track schema change.
Itz-Agasta [Fri, 13 Mar 2026 12:01:51 +0000 (17:31 +0530)]
Switches associatedStreet handling to dedicated table
Improves address relation processing by migrating logic to a new dedicated table for associatedStreet relations.
Simplifies triggers and indexing, ensuring precise updates and more efficient parent assignment for house members.
Updates tests and freeze tooling for compatibility.
Itz-Agasta [Fri, 27 Feb 2026 12:44:39 +0000 (18:14 +0530)]
Invalidate house members on associatedStreet changes
Ensures that updates to associatedStreet relations trigger re-indexing
of associated house members, allowing their parent_place_id to be
recomputed during the next indexing run. Addresses inconsistencies
caused by changes to relation membership, improving data accuracy.
Itz-Agasta [Mon, 2 Mar 2026 07:06:45 +0000 (12:36 +0530)]
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.
Itz-Agasta [Fri, 20 Feb 2026 16:57:30 +0000 (22:27 +0530)]
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.
Itz-Agasta [Tue, 10 Feb 2026 09:03:52 +0000 (14:33 +0530)]
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.