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
Sarah Hoffmann
e264604894
drop more railway tags
2024-02-27 10:15:08 +01:00
Sarah Hoffmann
3a5d9f0377
drop amenity=parking_space/entrance objects
...
Parking is sufficiently covered with amenity=parking.
2024-02-27 10:15:08 +01:00
Sarah Hoffmann
8be27015b2
drop boundary=land_area
...
Usually a version of administrative boundaries without ocean area.
Resulting polygons are pretty larrge and having the boundaries
should be enough.
2024-02-27 10:15:08 +01:00
Sarah Hoffmann
100391fb8e
import leisure=natural_reserve as fallback only
...
About half of the natural reserves have a double tagging with
boundary=protected_area. Avoid importing these objects twice.
2024-02-27 10:15:08 +01:00
Sarah Hoffmann
dc1baaa0af
prefer min() function over if construct
...
Fixes a linter complaint.
2024-02-27 09:26:50 +01:00
marc tobias
7205491b84
Correct some typos
2024-02-26 18:13:30 +01:00
Sarah Hoffmann
918fec73c6
Merge pull request #3341 from mtmail/remove-php-faq-entries
...
PHP related FAQ entries are no longer needed
2024-02-21 08:56:18 +01:00
marc tobias
b6df486525
PHP related FAQ entries are no longer needed
2024-02-20 18:55:02 +01:00
Sarah Hoffmann
8bd8a040e0
Merge pull request #3340 from lonvia/fix-lua-liniting-issues
...
Fix some issues in the style files found by luacheck
2024-02-20 12:00:01 +01:00
Sarah Hoffmann
781e83ddc3
fix issues found by luacheck
...
The variable shadowing causes bad results when used with LuaJIT.
2024-02-20 10:43:51 +01:00
Sarah Hoffmann
5afd96d210
Merge pull request #3339 from lonvia/python-frontend-as-default
...
Switch to Python frontend as the default
2024-02-20 10:17:21 +01:00
Sarah Hoffmann
cf49a070fd
switch Ubuntu installation scripts to Python frontend
2024-02-19 18:39:01 +01:00
Sarah Hoffmann
4aba36c5ac
API debug: properly escape non-highlighted code
2024-02-19 18:39:01 +01:00
Sarah Hoffmann
ca6e65fff1
bdd: be more verbose on HTML parsing error
2024-02-19 18:39:01 +01:00
Sarah Hoffmann
1e0025b095
also switch unit tests for cli
2024-02-19 18:39:01 +01:00
Sarah Hoffmann
173e85c9e6
actions: make php the legacy tests
2024-02-19 18:39:01 +01:00
Sarah Hoffmann
ffb467028e
update documentation to recommend Python frontend
2024-02-19 18:39:01 +01:00
Sarah Hoffmann
05fad607ff
make Python frontend default and PHP optional
2024-02-19 18:39:01 +01:00
Sarah Hoffmann
19360a9552
Merge pull request #3338 from lonvia/remove-nested-cli-groups
...
Add documentation for importing without superuser rights
2024-02-16 19:27:25 +01:00
Sarah Hoffmann
b087f3ab7b
actions: switch no-superuser test to PostgreSQL 16
...
The new premission restrictions on the public schema took only
place in PG15, so the previsouly used PG14 does not show any issues.
2024-02-16 17:14:47 +01:00
Sarah Hoffmann
2c8fb31381
add documentation for non-superuser import
2024-02-16 17:14:47 +01:00
Sarah Hoffmann
b2d3f0a8b3
remove unnecessary nested group in CLI import command
2024-02-16 11:32:50 +01:00
Sarah Hoffmann
bd8025feab
Merge pull request #3333 from lonvia/set-empty-extratags-to-null
...
Extratags should become null when empty
2024-02-08 14:26:49 +01:00
Sarah Hoffmann
4c19762e33
extratags should become null when empty
...
Removing the artifical entries in the extratags may lead to
an empty hstore. Set it to null in that case.
Fixes #3055 .
2024-02-08 10:21:48 +01:00
Sarah Hoffmann
1015ac40ae
Merge pull request #3332 from lonvia/improve-cutting-of-result-list
...
Prefilter bad results before adding details and reranking
2024-02-07 10:50:32 +01:00
Sarah Hoffmann
4ce13f5c1f
prefilter bad results before adding details and reranking
...
Move the first cutting of the result list before reranking
by result match. This means that results with significantly
less importance are removed early and independently of the
fact how well they match the original query.
Fixes #3266 .
2024-02-06 20:29:48 +01:00
Sarah Hoffmann
2833362cf6
Merge pull request #3331 from lonvia/fix-word-table-rights
...
Properly grant rights to read-only user when switching out word table
2024-02-06 20:21:25 +01:00
Sarah Hoffmann
bc51378aee
properly grant rights to read-only user when switching out word table
2024-02-06 17:30:01 +01:00
Sarah Hoffmann
39039e2a55
docs: mark layer parameter as python-only
2024-02-06 15:59:04 +01:00
Sarah Hoffmann
f523c01571
Merge pull request #3328 from lonvia/word-count-into-new-table
...
Recreate word table when refreshing counts
2024-02-05 11:58:11 +01:00
Sarah Hoffmann
81eed0680c
recreate word table when refreshing counts
...
The counting touches a large part of the word table, leaving
bloated tables and indexes. Thus recreate the table instead and
swap it in.
2024-02-04 21:35:10 +01:00
Sarah Hoffmann
33c0f249b1
avoid LookupAny with address and too many name tokens
...
The index for nameaddress_vector has grown so large that PostgreSQL
will resort to a sequential scan if there are too many items
in the LookupAny list.
2024-01-29 16:52:14 +01:00
Sarah Hoffmann
76eadc562c
print any collected debug output when returning a timeout error
2024-01-28 22:30:34 +01:00
Sarah Hoffmann
3cc3e3b2e3
Merge pull request #3321 from lonvia/remove-duplicate-partials
...
Improvements to query parsing
2024-01-28 20:32:58 +01:00
Sarah Hoffmann
f07f8530a8
housenumber-only searches cannot be combined with qualifiers
2024-01-28 19:03:11 +01:00