Sarah Hoffmann
6b60f0ab03
use bool_or(ST_Intersects) instead of ST_Intersects(ST_Collect)
...
ST_Intersects segfaults on geometry collections for certain versions
of Postgis 3.
2020-11-16 15:28:01 +01:00
Sarah Hoffmann
aa9923bf07
fix typo
2020-11-16 15:28:01 +01:00
Sarah Hoffmann
9160cce6d8
remove unused columns in search_name_* and use right index
...
We only need the address rank these days, so get rid of
search rank. Also switch indexes to work on address rank.
2020-11-16 15:28:01 +01:00
Sarah Hoffmann
885dc0a8e1
more tests for absense of additional addressline entries
2020-11-16 15:28:01 +01:00
Sarah Hoffmann
7324431b12
get additional addresses for rank 30 objects
...
get_addressdata() now also checks if the place itself has entries
in the place_addressline table and merges them into the results.
Also restrict checking for address tag places to cases where the
name cannot be found in the parent's address search terms. Looking
up all address tags is just too slow.
2020-11-16 15:28:01 +01:00
Sarah Hoffmann
021f2bef4c
get address terms from address tags for rank 30
...
For rank 30 objects add extra elements into the place_addressline
table.
2020-11-16 15:28:01 +01:00
Sarah Hoffmann
6260fef2e8
add test for placex from addr tags
2020-11-16 15:28:01 +01:00
Sarah Hoffmann
c7472662a6
lookup places for address tags for rank < 30
...
While previously the content of addr:* tags was only added
to the list of address search keywords, we now really look up
the matching place. This has the advantage that we pull in all
potential translations from the place, just like all the other
address terms that are looked up by neighbourhood search.
If no place can be found for a given name, the content of the
addr:* tag is still added to the search keywords as before.
2020-11-16 15:28:01 +01:00
Sarah Hoffmann
fecfe62fc6
Merge pull request #2055 from lonvia/fix-actions
...
Actions: update apt repo before installing software
2020-11-16 11:26:10 +01:00
Sarah Hoffmann
21b0430e46
actions: update apt repo before installing software
2020-11-16 10:14:38 +01:00
Sarah Hoffmann
66595c2d2b
Merge pull request #2046 from lonvia/less-parallel-ranking
...
Only index larger batches for rank 30
2020-11-06 09:39:07 +01:00
Sarah Hoffmann
4ac29fb525
only index larger batches for rank 30
...
Fixes #2045 .
2020-11-05 22:14:49 +01:00
Sarah Hoffmann
04d50a271d
Merge pull request #2041 from lonvia/address-ranks-belgium
...
Adapt admin_levels for Belgium
2020-11-03 16:23:35 +01:00
Sarah Hoffmann
cbbda1ddf0
adapt admin_levels for Belgium
...
Fixes #272 .
2020-11-03 10:46:52 +01:00
Sarah Hoffmann
928c6245c9
Merge pull request #2038 from lonvia/addresses-for-large-areas
...
Improve addresses for large areas
2020-11-03 08:49:01 +01:00
Sarah Hoffmann
ac9be161f6
Merge pull request #2039 from lonvia/migration-for-ui
...
Add migration hints for UI removal and remove tests for icon attribute
2020-11-03 08:48:45 +01:00
Sarah Hoffmann
33378dcf6e
remove tests for icon attribute
...
The icon attribute requires the CONST_MapIcon_URL to be present
which we cannot guarantee for the tests.
2020-11-02 16:46:29 +01:00
Sarah Hoffmann
e31a1f7ef1
docs: add migration hints for removed UI
2020-11-02 16:34:17 +01:00
Sarah Hoffmann
fa574ae9fd
use different area estimates for large countries
2020-11-02 14:21:30 +01:00
Sarah Hoffmann
b2ebf4b4b7
adapt tests to rank changes of natural
2020-11-02 11:42:10 +01:00
Sarah Hoffmann
0f5615b618
guess a base address level for address rank 0 objects
...
The guess is based on the area and mainly avoids odd
addresses for very large or small objects.
2020-11-02 11:42:10 +01:00
Sarah Hoffmann
f050f898bc
elevate most natural feature to address rank 22
...
Makes them be in par with landuse features.
2020-11-02 11:42:10 +01:00
Sarah Hoffmann
ce1c3bab6d
Merge pull request #2032 from lonvia/remove-ui
...
Remove HTML output
2020-11-01 15:12:12 +01:00
Sarah Hoffmann
5cdabc5173
Merge pull request #2035 from lonvia/add-index-to-multicountry-script
...
docs: need to index after updating with a file
2020-11-01 15:11:02 +01:00
Sarah Hoffmann
42775f959b
docs: need to index after updating with a file
...
Fixes #2031 .
2020-10-31 22:53:08 +01:00
Sarah Hoffmann
7f55dcef3a
use simpler recurse operator for overpass download
...
Also fixes a typo in the OSM link.
2020-10-31 21:44:28 +01:00
Sarah Hoffmann
ba8accf4bb
make phpcs happy
2020-10-29 11:36:16 +01:00
Sarah Hoffmann
e62db51b06
vagrant: setting website URL is not longer necessary
2020-10-29 11:13:32 +01:00
Sarah Hoffmann
b81894d3d5
remove now unused settings related to website
...
There are two places where the website URL is still used:
for icons, replace the URL with a link to the icon repository
of the UI repo. The more URL now builds the link from the
server info.
2020-10-29 11:13:32 +01:00
Sarah Hoffmann
d86cf6801f
remove tests for HTML output
2020-10-29 11:13:32 +01:00
Sarah Hoffmann
c0d21d0bd3
remove HTML output and UI elements
2020-10-29 11:13:04 +01:00
Sarah Hoffmann
b838f66dd7
remove hierarchy endpoint
...
This endpoint was never maintained and most of the information
can be obtained via the details endpoint.
2020-10-29 11:13:03 +01:00
Sarah Hoffmann
db9cc270b3
Merge pull request #2030 from lonvia/improve-ci
...
Small improvements for github actions run
2020-10-28 15:20:40 +01:00
Sarah Hoffmann
4147e04319
action: cache downloaded dependencies
2020-10-28 14:51:05 +01:00
Sarah Hoffmann
a888f6ff93
Merge pull request #2027 from lonvia/remove-duplicate-admin-boundaries
...
Handle duplicated admin boundaries
2020-10-28 11:11:42 +01:00
Sarah Hoffmann
bd04c49bc1
actions: tweak database settings
...
Disabling fsync and friends should speed up the CI run
significantly.
2020-10-28 11:10:14 +01:00
Sarah Hoffmann
5872b81232
use highest admin boundary for duplicated ones
2020-10-28 10:49:26 +01:00
Sarah Hoffmann
abd20d3ca6
disable admin level 5 in Russia
...
They either interfere with cities or refer to historical boundaries.
2020-10-28 10:49:26 +01:00
Sarah Hoffmann
95f83b90d2
minor fixes for geometry compuation during boundary ranking
...
Go back to using centroid when determining if one admin level
is within another. There are cases where boundaries are slightly
misaligned due to mapping errors (not using the same ways in the
relations).
Only declare boundaries the same when they have the same wikidata
tag _and_ have exactly the same geometry. This works around tagging
errors with the wikidata tag, which happen because of automated
edits to the wikidata tag.
2020-10-28 10:49:26 +01:00
Sarah Hoffmann
7a16909219
detect and remove admin boundary duplicates
...
The Polish community maps admin boundaries that span multiple
levels by duplicating the boundary relations. Detect this situation
by looking out for matching wikidata tags. The higher ranked
duplicates are then thrown out from the address pool by setting
their address rank to 0.
2020-10-28 10:49:26 +01:00
Sarah Hoffmann
ee4684e6a9
Merge pull request #2029 from lonvia/master
...
Switch CI to github actions
2020-10-28 10:12:52 +01:00
Sarah Hoffmann
a2b1a1eb33
switch CI badge to github actions
2020-10-28 10:11:22 +01:00
Sarah Hoffmann
7bc0fc9611
switch CI to github acitons
2020-10-28 09:29:22 +01:00
Sarah Hoffmann
e0e18e2b6f
Merge pull request #2025 from lonvia/fix-secondary-importance-for-countries
...
Improve secondary result ordering for administrative boundaries
2020-10-22 13:43:22 +02:00
Sarah Hoffmann
788ba6d985
adjust secondary order when no addressimportance available
...
In cases of countries and remote places without an address
it is possible that 'addressimportance' comes back empty.
Adjust the 'foundorder' to the places importance instead
in such cases.
Fixes #2023 .
2020-10-22 10:20:16 +02:00
Sarah Hoffmann
b012e15245
readd boundary:administrative to class importance
2020-10-22 10:16:04 +02:00
Sarah Hoffmann
ba31456278
Merge pull request #2022 from lonvia/populate-rank-25
...
reorganize ranks of high-level place types
2020-10-20 23:26:18 +02:00
Sarah Hoffmann
b661c66c00
reorganize ranks of high-level place types
...
Rank 25 is now available for places that should appear in addresses
but not when a street is present. Use this for som block-like
place types. Also document the particularity of rank 25.
subdevisions and allotments are now at the same level as landuse
which they are frequently used together with.
2020-10-20 20:20:49 +02:00
Sarah Hoffmann
f0372736aa
Merge pull request #2019 from lonvia/find-pgconfig-inpostgresql-repo
...
Add support for finding pg_config in Postgresql repos
2020-10-20 15:02:00 +02:00
Sarah Hoffmann
e286d3f23d
add support for finding pg_config in Postgresql repos
...
It uses the same PostgreSQL_ADDITIONAL_VERSIONS variable as
osm2pgsql so that setting that should be sufficient to make
it work.
2020-10-20 11:39:00 +02:00