Sarah Hoffmann
340fe64e8b
put postcodes in extra table on import
2025-12-30 15:20:46 +01:00
Aditya30ag
3b182afa72
Fix typo in place_addressline table name in tests
2025-12-30 17:40:08 +05:30
Ayush Dhar Dubey
4fd616254a
update Locales constructor:
...
expect output names as argument and avoid redundant configuration initialization
2025-12-20 19:15:33 +05:30
Sarah Hoffmann
58e56ec53d
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
2025-12-08 11:51:50 +01:00
Ayush Dhar Dubey
4919240377
test for cell-per-line format
2025-12-08 11:01:14 +05:30
Ayush Dhar Dubey
56cb183c4e
update sp test content
...
add latest <generator>MediaWiki 1.43.5</generator>
add test case for one-row-per-line
2025-12-08 10:59:10 +05:30
Sarah Hoffmann
35060164ab
reverse: only return housenumbers near street
2025-12-07 11:00:23 +01:00
Sarah Hoffmann
3bb5d00848
avoid extra query for finding closest housenumber in reverse
2025-12-05 17:09:13 +01:00
Sarah Hoffmann
ffd5c32f17
fix comparision between countr tokens and country restriction
2025-12-04 18:29:25 +01:00
Sarah Hoffmann
48d13c593b
fix flaky test around postcode word match penalties
2025-12-02 11:15:37 +01:00
Sarah Hoffmann
9447c90b09
adapt tests to new country token format
2025-12-01 13:10:18 +01:00
Sarah Hoffmann
81c6cb72e6
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.
2025-12-01 13:10:18 +01:00
Sarah Hoffmann
303ac42b47
Merge pull request #3862 from mtmail/skip-all-zero-postcodes
...
Postcode sanetizer now skips values which are only zeros
2025-10-31 10:36:05 +01:00
Sarah Hoffmann
a51c771107
disable improved BDD test naming for pytest < 8
...
Needs the improved test collector introduced in pytest 8.0.
2025-10-30 20:50:00 +01:00
Sarah Hoffmann
55547723bf
add custom pytest collector for BDD feature files
2025-10-30 17:56:23 +01:00
marc tobias
362088775f
postcode sanetizer skips postcodes which are only zeros
2025-10-30 13:45:29 +01:00
Sarah Hoffmann
5d4c29b84b
force inclusion of extratags used directly by Nominatim
2025-10-28 17:20:17 +01:00
Sarah Hoffmann
f1fbc04f33
harmonize use of callback with set_entrance_filter
...
All other functions except a simple function, so do this here as well.
2025-10-28 14:33:45 +01:00
Sarah Hoffmann
2dda9079f0
add BDD tests for importing into the new place_entrance table
2025-10-24 10:52:25 +02:00
Sarah Hoffmann
589825d37e
adapt tests for extra place_entrance table
2025-10-23 17:25:20 +02:00
Sarah Hoffmann
5a8aa6cce4
adapt tests to new penalties
2025-09-12 17:45:22 +02:00
Sarah Hoffmann
1d1d80e1e3
adapt BDD tests for new address ranks
2025-09-11 11:56:39 +02:00
Sarah Hoffmann
177b16b89b
use new QueryStatistics in API server
2025-09-10 11:52:06 +02:00
Sarah Hoffmann
8339c2b928
no longer accept None in result maker functions
2025-09-06 11:09:40 +02:00
Sarah Hoffmann
bf604e36ee
add test for timeout class
2025-09-05 23:31:09 +02:00
Sarah Hoffmann
3a50f749dd
apply request timeout also while waiting for a connection from pool
2025-09-05 23:31:09 +02:00
Emily Love Watson
91e345f77f
Store entrance fields as columns on table
2025-08-29 10:26:29 -05:00
Emily Love Watson
d0ad65f696
Select all entrances for results in one query
2025-08-29 10:26:29 -05:00
Emily Love Watson
e916d27b7c
Update entrances when entrance nodes are updated
2025-08-29 10:26:29 -05:00
Emily Love Watson
823ad5d279
Update entrances schema
2025-08-29 10:26:29 -05:00
Sarah Hoffmann
c2a311e69c
fix poscode update computation: use distance
2025-08-29 15:10:27 +02:00
marc tobias
247afe1f56
sanetizer no longer strips name parts in brackets when more parts follow
2025-08-23 01:06:35 +02:00
anqixxx
6b627df4fb
Locales and localization refactor with Locales as a localizer object.
...
Removed auto-localization from search/search_address APIs (now explicit), simplified AddressLines to subclass List[AddressLine], made display_name a computed property in Results instead of field and removed result-localization circular dependencies
2025-08-12 08:05:37 -04:00
Sarah Hoffmann
0045203092
don't restrict to viewbox for frequent terms
...
All searched places may be outside the viewbox in which case the
restriction means that there are no results at all. Add the penalty for
being outside the viewbox earlier instead and then cut the list.
2025-08-06 17:27:52 +02:00
Sarah Hoffmann
a7709c768d
add test for reverse with address layer and inherited address
2025-07-31 22:25:55 +02:00
Sarah Hoffmann
47c0a101b9
Merge pull request #3799 from lonvia/reduce-coordinate-precision
...
Reduce coordinate precision of centroids and interpolation lines
2025-07-30 14:50:36 +02:00
marc tobias
9bad3b1e61
Better hint to user if database import didnt finish
2025-07-30 10:25:14 +02:00
Sarah Hoffmann
242fcc6e4d
adapt BDD tests to different rounding of reduce precision
2025-07-29 22:35:55 +02:00
Sarah Hoffmann
8a96e4f802
Merge pull request #3781 from lonvia/partial-address-index-lookup
...
Reduce number of tokens used for index lookups during search
2025-07-15 10:11:12 +02:00
Sarah Hoffmann
a9cd706bb6
adapt test to new lookup limits
2025-07-14 14:21:09 +02:00
Sarah Hoffmann
621d8e785b
Merge pull request #3779 from lonvia/fix-zero-devision-direction
...
Fix direction factor computation on empty strings
2025-07-11 14:51:00 +02:00
Sarah Hoffmann
26903aec0b
add BDD test for empty queries
2025-07-11 14:16:48 +02:00
Sarah Hoffmann
73ee17af95
adapt tests for new function signatures
2025-07-11 11:01:22 +02:00
Sarah Hoffmann
e327512667
adapt BDD test to refusal to search POI names with hnr only
2025-07-07 16:14:58 +02:00
Sarah Hoffmann
c634e9fc5f
differentiate between place searches with and without address
2025-07-07 12:03:56 +02:00
Sarah Hoffmann
13eaea8aae
split place search into address search and named search
...
The presence/absence of houenumbers makes quite a difference for search.
2025-07-07 09:13:48 +02:00
Sarah Hoffmann
f43fec0d57
Merge pull request #3764 from lonvia/update-importance
...
'refresh --importance' also needs to refresh importances in search_name table
2025-06-27 10:02:18 +02:00
Sarah Hoffmann
af82c3debb
remove duplicated test
...
There is a more extensive test of recompute_importance with
result check in test_refresh_wiki_data.py
2025-06-26 22:35:38 +02:00
Sarah Hoffmann
678702ceb7
rewrite importances in search_name after updating in placex
2025-06-26 20:27:37 +02:00
Sarah Hoffmann
f9eb93c4ab
remove support for deprecated gazetteer osm2pgsql output
2025-06-25 23:09:08 +02:00