Sarah Hoffmann
657aae5f1b
Merge pull request #3383 from lonvia/window-searches
...
Reorganize SQL for place search using window functions
2024-04-03 10:55:10 +02:00
Sarah Hoffmann
38798bba13
increase search area when filtering by postcode
2024-04-02 19:36:16 +02:00
marc tobias
05eb1d5f42
geocodejson: admin level output should only print boundaries
2024-04-02 18:58:09 +02:00
Sarah Hoffmann
fe873ad0e2
adapt tests for windowing SQL
...
Results with high penalty are now thrown out earlier.
2024-04-02 16:32:49 +02:00
Sarah Hoffmann
bdded69ab6
housenumber position should hint on direction
...
rather than increasing penalty.
2024-04-02 16:30:50 +02:00
Sarah Hoffmann
9f42c3f3b8
remove restriction on frequent one word names
...
This is now solved by reducing results with the windowing SQL
during search.
2024-04-02 16:28:17 +02:00
Sarah Hoffmann
424ebd7fe9
split search SQL in windowed search_name lookup and constraint search
2024-04-02 16:28:12 +02:00
Sarah Hoffmann
78c19bc006
minimum counts for tokens should always be 1
...
to avoid accidental devision by 0.
2024-04-01 14:25:51 +02:00
Sarah Hoffmann
e53eb79923
Merge pull request #3375 from matkoniecz/patch-1
...
add missing space in taginfo listing
2024-03-27 10:03:45 +01:00
Sarah Hoffmann
c39fc5d180
don't even try heavily penalized searches
2024-03-26 22:00:25 +01:00
Sarah Hoffmann
a96b6a1289
reintroduce cutoffs when searching for very frequent words
2024-03-26 21:46:37 +01:00
Mateusz Konieczny
8f6f113e1c
add missing space in taginfo listing
...
say https://taginfo.openstreetmap.org/tags/shop=guns#projects was listing description
`POI/feature in the search database(except for values: no).`
2024-03-26 15:43:00 +01:00
Sarah Hoffmann
436aff2fd3
Merge pull request #3373 from lonvia/restrict-man-made
...
Style tweaks: restrict man_made features to be imported
2024-03-25 15:20:47 +01:00
Sarah Hoffmann
44922af20e
style: restrict man_made main tag to selected values
2024-03-25 11:46:39 +01:00
Sarah Hoffmann
4315debff5
Merge pull request #3367 from lonvia/address-word-counts
...
Introduce word usage statistics for addresses
2024-03-18 14:32:26 +01:00
Sarah Hoffmann
ace84ed0e3
use address counts for improving index lookup
2024-03-18 11:25:48 +01:00
Sarah Hoffmann
ff3230a7f3
add penalty for single words that look like stop words
2024-03-18 11:25:48 +01:00
Sarah Hoffmann
07b7fd1dbb
add address counts to tokens
2024-03-18 11:25:48 +01:00
Sarah Hoffmann
bb5de9b955
extend word statistics to address index
...
Word frequency in names is not sufficient to interpolate word
frequency in the address because names of towns, states etc. are
much more frequently used than, say street names.
2024-03-18 11:25:48 +01:00
Sarah Hoffmann
40b87bbadf
Merge pull request #3363 from mtmail/docs-link-correction
...
Docs: correct URL of an internal link
2024-03-14 17:46:34 +01:00
marc tobias
1c195eb1e4
docs: correct URL of an internal link
2024-03-14 13:50:24 +01:00
Sarah Hoffmann
9c48726691
add geometry details for postcode area output
2024-03-12 13:51:29 +01:00
Sarah Hoffmann
4fa349315b
Merge pull request #3362 from lonvia/find-postcode-areas
...
Lookup postcode areas for postcode results
2024-03-12 10:05:16 +01:00
Sarah Hoffmann
50beac8305
remove BDD test for place_id details
...
It is not reliable.
2024-03-11 21:07:14 +01:00
Sarah Hoffmann
9de6bdd7dd
exclude postcode test from legacy and php
2024-03-11 15:28:57 +01:00
Sarah Hoffmann
6e688a0113
postcodes: exclude seen places later
...
The seen list will only have the postcode area when available but
we want the postcode point excluded as well if the area has been seen.
2024-03-11 15:18:57 +01:00
Sarah Hoffmann
dc7cfd1708
look for postcode areas when finding something in the postcode table
2024-03-11 14:48:24 +01:00
Sarah Hoffmann
e5a5f02666
prepare release 4.4.0
2024-03-07 11:43:01 +01:00
Sarah Hoffmann
11ced26025
Merge pull request #3358 from lonvia/pg-module-for-pg16
...
Fix compilation of legacy module for PostgreSQL 16
2024-03-07 11:39:24 +01:00
Sarah Hoffmann
edb1eec46d
actions: run legacy test against newest postgresql 16
2024-03-05 19:38:06 +01:00
Sarah Hoffmann
63eacc5589
fix compilation of PG module for PostgreSQL 16
...
This version requires an additional include for the macros used.
2024-03-05 16:31:02 +01:00
Sarah Hoffmann
e929693cae
Merge pull request #3356 from lonvia/use-date-from-osm2pgsql-prop
...
Use import date from osm2pgsql property table if available
2024-03-05 15:32:16 +01:00
Sarah Hoffmann
ae7c584e28
use import date from osm2pgsql property table if available
2024-03-05 11:33:32 +01:00
Sarah Hoffmann
4d5faf9423
Merge pull request #3353 from mtmail/add-codespell
...
Github Actions: add codespell linter, warn only
2024-03-04 14:02:00 +01:00
marc tobias
b7eea4d53a
Github Actions: add codespell linter, warn only
2024-03-04 00:22:24 +01:00
Sarah Hoffmann
dd2c794de5
Merge pull request #3350 from lonvia/improve-postcode-handling
...
Improve handling of postcode areas
2024-02-28 18:45:31 +01:00
Sarah Hoffmann
3b6d35fc12
Merge pull request #3349 from lonvia/remove-way-geometry-table-after-import
...
Drop lower-rank-ways index after import
2024-02-28 17:47:34 +01:00
Sarah Hoffmann
9fa73cfb15
improve display name for postcodes
...
Don't add the postcode again in the list of address details and
make sure that the result proper always comes before anything else
independently of the address rank.
2024-02-28 16:50:40 +01:00
Sarah Hoffmann
62b7670e0c
for postcodes use rank_search as base rank for finding addresses
...
The rank_address reflects the position in the address which is
usually lower than what one would expect for a postcode area.
2024-02-28 14:40:36 +01:00
Sarah Hoffmann
d7bb449e74
drop lower-rank-ways index after import
...
The index becomes quite big and is only needed during import
because the full geometry import does not exist yet.
2024-02-28 14:35:56 +01:00
Sarah Hoffmann
247065ff6f
Merge pull request #3342 from mtmail/tyops
...
Correct some typos
2024-02-28 14:25:16 +01:00
Sarah Hoffmann
9a84adef59
Merge pull request #3347 from lonvia/tweak-boundary-imports
...
Assorted style tweaks
2024-02-28 14:22:08 +01:00
Sarah Hoffmann
1879cf902c
Merge pull request #3346 from lonvia/reduce-artificial-importance
...
Reduce default importance
2024-02-28 14:21:46 +01:00
Sarah Hoffmann
019a68a4bb
Merge pull request #3345 from lonvia/simplify-large-geometries
...
Simplify very large polygons that are not used in addresses
2024-02-28 12:06:49 +01:00
Sarah Hoffmann
110491011f
Merge pull request #3344 from lonvia/osm2pgsql-new-middle
...
Update osm2pgsql to latest 1.11.0 and add support for new middle format
2024-02-28 12:06:33 +01:00
Sarah Hoffmann
36b1660121
add support for new middle table format of osm2pgsql
...
Functions are adapted according to the format detected from the
osm2pgsql property table.
2024-02-27 18:18:19 +01:00
Sarah Hoffmann
56201feb28
simplify very large polygons non used in addresses
...
Polygons with rank_address = 0 are only used in search and (rarely)
for reverse lookup. Geometries do not need to be precise for that
because topology does not matter. OSM has some very large polygons
of natural features with sizes of more than 10MB. Simplify these
polygons to keep the database and indexes smaller.
2024-02-27 10:16:18 +01:00
Sarah Hoffmann
c6d40d4bf4
reduce importance when computed from search rank
2024-02-27 10:15:54 +01:00
Sarah Hoffmann
a4f2e6a893
do not send outdated parameters to osm2pgsql flex
2024-02-27 10:15:36 +01:00
Sarah Hoffmann
b427fc7965
update osm2pgsql to 1.11.0
2024-02-27 10:15:36 +01:00