]> git.openstreetmap.org Git - nominatim.git/log
nominatim.git
4 years agoremove unused idx_placex_geometry_reverse_lookupPoint
Sarah Hoffmann [Wed, 30 Sep 2020 07:21:35 +0000 (09:21 +0200)]
remove unused idx_placex_geometry_reverse_lookupPoint

The index has been unused ever since the query using it was
changed two years ago. Given that it has not been missed much,
drop it completely here.

4 years agoMerge pull request #1982 from lonvia/more-rank-search-removal
Sarah Hoffmann [Sat, 26 Sep 2020 09:08:20 +0000 (11:08 +0200)]
Merge pull request #1982 from lonvia/more-rank-search-removal

More rank search removal

4 years agoadapt tests to rank_search removal
Sarah Hoffmann [Sat, 26 Sep 2020 07:10:37 +0000 (09:10 +0200)]
adapt tests to rank_search removal

4 years agoRemove more rank_search usage from address computation
Sarah Hoffmann [Fri, 25 Sep 2020 15:50:36 +0000 (17:50 +0200)]
Remove more rank_search usage from address computation

Fixes #1904.

4 years agoMerge pull request #1980 from lonvia/add-descriptive-term-for-address-rank-24
Sarah Hoffmann [Fri, 25 Sep 2020 14:56:35 +0000 (16:56 +0200)]
Merge pull request #1980 from lonvia/add-descriptive-term-for-address-rank-24

add descriptive term for address rank 24

4 years agoadd descriptive term for address rank 24
Sarah Hoffmann [Fri, 25 Sep 2020 14:02:17 +0000 (16:02 +0200)]
add descriptive term for address rank 24

With that term we have terms for all ranks, so that no generic
'administrative' term will show up in the address details anymore.

4 years agoMerge pull request #1975 from lonvia/simplify-parent-assignment-for-unlisted-places
Sarah Hoffmann [Wed, 23 Sep 2020 17:10:42 +0000 (19:10 +0200)]
Merge pull request #1975 from lonvia/simplify-parent-assignment-for-unlisted-places

Use closest containing place area for parent of unlisted addr:place

4 years agoMerge pull request #1970 from lonvia/remove-duplicate-geometry-check
Sarah Hoffmann [Wed, 23 Sep 2020 16:51:35 +0000 (18:51 +0200)]
Merge pull request #1970 from lonvia/remove-duplicate-geometry-check

Switch recursive updates to using rank_search

4 years agouse rank_address when invalidating containing objects
Sarah Hoffmann [Tue, 22 Sep 2020 14:34:28 +0000 (16:34 +0200)]
use rank_address when invalidating containing objects

Only rank_address is now relevant for determining if a place
could be part of an address.

4 years agoremove ST_Covers check when also testing for ST_Intersects
Sarah Hoffmann [Tue, 22 Sep 2020 13:51:04 +0000 (15:51 +0200)]
remove ST_Covers check when also testing for ST_Intersects

Using both is slightly problematic because they have different
ways to use the index. Newer versions of Postgis exhibit a
query planner issue when both functions appear together.
As ST_Intersects includes ST_Covers, simply remove the latter.

4 years agouse closest containing place for unlisted addr:place
Sarah Hoffmann [Wed, 23 Sep 2020 15:33:42 +0000 (17:33 +0200)]
use closest containing place for unlisted addr:place

We can't use getNearFeatures() to determine the parent of a
place with an unlisted addr:place because this function
returns place nodes that are potentially outside the area
of interest. Doing the complete address computation is too
expensive, so simply use the area with the largest rank that
contains the feature instead.

4 years agoMerge pull request #1974 from lonvia/show-unknown-addr-place
Sarah Hoffmann [Wed, 23 Sep 2020 13:26:12 +0000 (15:26 +0200)]
Merge pull request #1974 from lonvia/show-unknown-addr-place

add unknown addr:place to address output

4 years agoadd unknown addr:place to address output
Sarah Hoffmann [Wed, 23 Sep 2020 09:55:18 +0000 (11:55 +0200)]
add unknown addr:place to address output

When a POI has no addr:street but an addr:place that is not
contained in the name list of the parent place, then remember
this situation and merge the content of addr:place into the
address output.

We don't need to care about translations in this case because
it is obvious that no object with translations exists if the
parent isn't the object named in addr:place.

4 years agoMerge pull request #1971 from lonvia/drop-support-for-isin
Sarah Hoffmann [Wed, 23 Sep 2020 07:20:35 +0000 (09:20 +0200)]
Merge pull request #1971 from lonvia/drop-support-for-isin

Drop support for is_in tag

4 years agoMerge pull request #1972 from lonvia/exclude-unnamed-highway-areas
Sarah Hoffmann [Wed, 23 Sep 2020 07:20:16 +0000 (09:20 +0200)]
Merge pull request #1972 from lonvia/exclude-unnamed-highway-areas

Exclude unnamed highway areas

4 years agoexclude unnamed highway areas
Sarah Hoffmann [Tue, 22 Sep 2020 11:27:05 +0000 (13:27 +0200)]
exclude unnamed highway areas

These are used to mark large paved areas. Sometimes they exists
together with named regular streets. In such cases the unnamed
area may overshadow the actual street when computing the address
parent. As unnamed highways are not very useful anyway, we
simply remove them from the database.

4 years agoremove test for is_in
Sarah Hoffmann [Tue, 22 Sep 2020 19:36:49 +0000 (21:36 +0200)]
remove test for is_in

4 years agodrop suport for is_in tag
Sarah Hoffmann [Sun, 13 Sep 2020 08:53:25 +0000 (10:53 +0200)]
drop suport for is_in tag

4 years agoMerge pull request #1965 from lonvia/make-addr-tags-searchable
Sarah Hoffmann [Tue, 22 Sep 2020 18:21:06 +0000 (20:21 +0200)]
Merge pull request #1965 from lonvia/make-addr-tags-searchable

Make addresses searchable by their addr: tags

4 years agoMerge pull request #1966 from lonvia/remove-dead-code
Sarah Hoffmann [Mon, 21 Sep 2020 08:59:58 +0000 (10:59 +0200)]
Merge pull request #1966 from lonvia/remove-dead-code

remove dead code

4 years agoremove dead code
Sarah Hoffmann [Mon, 21 Sep 2020 08:39:14 +0000 (10:39 +0200)]
remove dead code

The SQL query has moved into the addTokensFromDB() funtion.

4 years agoalways bind addr:place to place instead of street
Sarah Hoffmann [Thu, 3 Sep 2020 19:42:00 +0000 (21:42 +0200)]
always bind addr:place to place instead of street

If an addr:place is given but no addr:street tag, then bind
the rank 30 object always to a <=25 object, even when there
is none found with the same name.

4 years agomerge addr tags into search_name table
Sarah Hoffmann [Thu, 3 Sep 2020 08:38:33 +0000 (10:38 +0200)]
merge addr tags into search_name table

When a place of rank 30 has addr tags that are not covered by the
search terms of the parent, add a separate entry for the POI in
the search_name table that includes the addr tags. We can only
do that with named places. For POIs without a name the housenumber
is used as name. If that is not available either, searching still
won't work.

4 years agoMerge pull request #1964 from lonvia/remove-postcodes-with-colon
Sarah Hoffmann [Sat, 19 Sep 2020 15:47:43 +0000 (17:47 +0200)]
Merge pull request #1964 from lonvia/remove-postcodes-with-colon

ignore postcodes with colons

4 years agoignore postcodes with colons
Sarah Hoffmann [Sat, 19 Sep 2020 15:23:40 +0000 (17:23 +0200)]
ignore postcodes with colons

Colons are used as a delimiter in tiger:left and tiger:right tags
when multiple postcodes are given. Ignore those. This was already
done in the postcode update script. This changes just makes the
two places consistent where postcodes are added.

4 years agoUpdate broken links in documentation
Ben Antony [Thu, 17 Sep 2020 13:11:01 +0000 (15:11 +0200)]
Update broken links in documentation

4 years agoMerge pull request #1963 from lonvia/remove-postcodes-from-search-index
Sarah Hoffmann [Fri, 18 Sep 2020 20:41:24 +0000 (22:41 +0200)]
Merge pull request #1963 from lonvia/remove-postcodes-from-search-index

Remove postcodes from search index

4 years agoremove special casing for rank 25 postcodes
Sarah Hoffmann [Fri, 18 Sep 2020 14:18:02 +0000 (16:18 +0200)]
remove special casing for rank 25 postcodes

They can be computed like any other place.

4 years agouse same label for all types of postcode in address
Sarah Hoffmann [Fri, 18 Sep 2020 14:17:30 +0000 (16:17 +0200)]
use same label for all types of postcode in address

4 years agoremove postcodes entirely from indexing
Sarah Hoffmann [Fri, 18 Sep 2020 13:09:35 +0000 (15:09 +0200)]
remove postcodes entirely from indexing

place=postcode places are artificial places that collect addr:postcode
points for aggration. They should neither show up in the address nor
be searchable. That means that there is no need to index them at all.
Only let boundary=postal_code through which define correct areas for
postcodes.

4 years agopostal boundary may be imported without name
Sarah Hoffmann [Fri, 18 Sep 2020 09:08:47 +0000 (11:08 +0200)]
postal boundary may be imported without name

Postal boundaries usually just have the postcode tag set and are
therefore officially 'nameless'. We want to have them as
boundary=postal_code anyways in order to distiguish them from postcode
points inherited from addr: tags.

4 years agoMerge pull request #1961 from lonvia/set-place-type-for-result-in-address
Sarah Hoffmann [Thu, 17 Sep 2020 19:23:40 +0000 (21:23 +0200)]
Merge pull request #1961 from lonvia/set-place-type-for-result-in-address

Use place type of for result object in address parts

4 years agoMerge pull request #1960 from lonvia/fix-postcodes-duplicated-by-normalization
Sarah Hoffmann [Thu, 17 Sep 2020 19:23:23 +0000 (21:23 +0200)]
Merge pull request #1960 from lonvia/fix-postcodes-duplicated-by-normalization

Make sure that all postcodes have an entry in the word table

4 years agoMerge pull request #1957 from lonvia/docs-separate-out-deployment
Sarah Hoffmann [Thu, 17 Sep 2020 19:22:48 +0000 (21:22 +0200)]
Merge pull request #1957 from lonvia/docs-separate-out-deployment

Restructure vagrant scripts and installation documentation

4 years agoMerge pull request #1962 from mtmail/travis-ci-without-webserver
Sarah Hoffmann [Thu, 17 Sep 2020 18:38:17 +0000 (20:38 +0200)]
Merge pull request #1962 from mtmail/travis-ci-without-webserver

travis-ci: we dont need Apache installed

4 years agotravis-ci: we dont need Apache installed
marc tobias [Thu, 17 Sep 2020 16:21:16 +0000 (18:21 +0200)]
travis-ci: we dont need Apache installed

4 years agouse place type of for result object in address parts
Sarah Hoffmann [Thu, 17 Sep 2020 16:17:01 +0000 (18:17 +0200)]
use place type of for result object in address parts

Boundaries shound derive the address part type from the
linked place if possible. This was already implemented
for the address objects but not for the address information
from the address itself.

Fixes #1949.

4 years agomake sure that all postcodes have an entry in word
Sarah Hoffmann [Thu, 17 Sep 2020 15:11:22 +0000 (17:11 +0200)]
make sure that all postcodes have an entry in word

It may happen that two different postcodes normalize to exactly
the same token. In that case we still need two different entries
in the word table. Token lookup will then make sure that the correct
one is choosen.

Fixes #1953.

4 years agoMerge pull request #1945 from mtmail/travis-ubuntu-20
Sarah Hoffmann [Thu, 17 Sep 2020 14:20:19 +0000 (16:20 +0200)]
Merge pull request #1945 from mtmail/travis-ubuntu-20

Upgrade Travis-CI from Ubuntu 18 to 20

4 years agodocs: fix formatting
Sarah Hoffmann [Thu, 17 Sep 2020 08:16:25 +0000 (10:16 +0200)]
docs: fix formatting

4 years agorestructure developer's manual
Sarah Hoffmann [Thu, 17 Sep 2020 07:54:46 +0000 (09:54 +0200)]
restructure developer's manual

Add a section on setting up the development environment which now
also includes the former chapter on recreating the documentation.
Move the README from test/ into the manual as the new Testing
chapter.

4 years agomake CentOS 8 the default vagrant script
Sarah Hoffmann [Wed, 16 Sep 2020 15:34:36 +0000 (17:34 +0200)]
make CentOS 8 the default vagrant script

This puts it in line with the Ubunutu scripts.

4 years agoadapt Ubunut-20 vagrant file to triple webserver config
Sarah Hoffmann [Wed, 16 Sep 2020 14:27:34 +0000 (16:27 +0200)]
adapt Ubunut-20 vagrant file to triple webserver config

4 years agorestructure webserver setup in ubuntu 18 script
Sarah Hoffmann [Wed, 16 Sep 2020 09:19:38 +0000 (11:19 +0200)]
restructure webserver setup in ubuntu 18 script

Unify the two vagrant scripts for Ubuntu 18. The script can now
be run in three modes: no webserver, with apache, with nginx.
The default mode is to not install any webserver at all. This is
normally sufficient when just developping.

The commit also switches from bento to generic boxes and adds config
for running with a libvirt provider. You need an NFS deamon for
synchronized folders.

4 years agoadd 'make serve-global'
Sarah Hoffmann [Wed, 16 Sep 2020 09:15:55 +0000 (11:15 +0200)]
add 'make serve-global'

This runs the PHP development server in a mode where it listens
globally. This is needed when running inside vagrant and port-forwarding
to the host machine.

4 years agoremove host from default website URL
Sarah Hoffmann [Wed, 16 Sep 2020 09:13:51 +0000 (11:13 +0200)]
remove host from default website URL

Just assume that Nominatim runs under the root URL. This is a
more versatile base that also makes 'make serve' work out of the
box.

4 years agodocs: move webserver installation into separate chapter
Sarah Hoffmann [Tue, 15 Sep 2020 21:51:25 +0000 (23:51 +0200)]
docs: move webserver installation into separate chapter

4 years agoUpgrade Travis-CI from Ubuntu 18 to 20
marc tobias [Sun, 13 Sep 2020 22:28:53 +0000 (00:28 +0200)]
Upgrade Travis-CI from Ubuntu 18 to 20

4 years agoMerge pull request #1943 from mtmail/no-get-magic-quotes
Sarah Hoffmann [Mon, 14 Sep 2020 06:47:49 +0000 (08:47 +0200)]
Merge pull request #1943 from mtmail/no-get-magic-quotes

starting PHP 5.4 get_magic_quotes_gpc() returns false, no need to check

4 years agostarting PHP 5.4 get_magic_quotes_gpc() returns false, no need to check
marc tobias [Sun, 13 Sep 2020 22:45:22 +0000 (00:45 +0200)]
starting PHP 5.4 get_magic_quotes_gpc() returns false, no need to check

4 years agoMerge pull request #1940 from mtmail/north-macedonia
Sarah Hoffmann [Sat, 12 Sep 2020 14:15:22 +0000 (16:15 +0200)]
Merge pull request #1940 from mtmail/north-macedonia

country_name Macedonia => North Macedonia

4 years agocountry_name Macedonia => North Macedonia
marc tobias [Mon, 7 Sep 2020 15:24:06 +0000 (17:24 +0200)]
country_name Macedonia => North Macedonia

4 years agoMerge pull request #1936 from lonvia/tweeking-of-ranks
Sarah Hoffmann [Tue, 1 Sep 2020 19:23:28 +0000 (21:23 +0200)]
Merge pull request #1936 from lonvia/tweeking-of-ranks

More fine tuning of default rank assignments

4 years agoadapt tests to ranking changes
Sarah Hoffmann [Tue, 1 Sep 2020 16:03:17 +0000 (18:03 +0200)]
adapt tests to ranking changes

4 years agotweak size of large POIs
Sarah Hoffmann [Tue, 1 Sep 2020 16:00:40 +0000 (18:00 +0200)]
tweak size of large POIs

Further reduce the size from which on POIs are no longer bound
to streets but only to larger objects. The point of reference,
of what a largest POI could be that is still bound is JFK airport.

4 years agoaddress rank adjustment for addressable boundaries only
Sarah Hoffmann [Tue, 1 Sep 2020 15:59:26 +0000 (17:59 +0200)]
address rank adjustment for addressable boundaries only

Only administrative boundaries with an address rank need
to be adjusted. Otherwise just handle them like any other
object.

4 years agoimprove fallback ranking
Sarah Hoffmann [Tue, 1 Sep 2020 15:55:40 +0000 (17:55 +0200)]
improve fallback ranking

Boundaries and places now always get a rank < 26 to make sure that
they do not parent to a street. Skip boundary=place completely
because they will be covered throught the secondary place tag.

4 years agoMerge pull request #1934 from lonvia/fix-deletion-of-large-highway-areas
Sarah Hoffmann [Fri, 28 Aug 2020 08:08:42 +0000 (10:08 +0200)]
Merge pull request #1934 from lonvia/fix-deletion-of-large-highway-areas

Do not block deletion of large highway areas

4 years agodo not block deletion of large highway areas
Sarah Hoffmann [Fri, 28 Aug 2020 07:49:21 +0000 (09:49 +0200)]
do not block deletion of large highway areas

Deletion of areas should only e blocked for addressable features.
Streets and POIs do not have a large impact on updates.

4 years agoplace lookup: filter places that have no details
Sarah Hoffmann [Thu, 27 Aug 2020 07:33:21 +0000 (09:33 +0200)]
place lookup: filter places that have no details

In rare cases search_name might have entries for places for
which we do not return details, in particular for linkees.
Need to remove those entries in the result list before returning
the details.

Fixes #1932.

4 years agoMerge pull request #1931 from lonvia/stable-sort-for-results
Sarah Hoffmann [Wed, 26 Aug 2020 18:52:17 +0000 (20:52 +0200)]
Merge pull request #1931 from lonvia/stable-sort-for-results

Reranking of results must be stable

4 years agoensure that ordering by importance is stable
Sarah Hoffmann [Wed, 26 Aug 2020 15:42:43 +0000 (17:42 +0200)]
ensure that ordering by importance is stable

The initial search results retrieved from the database already come
preordered, either by importnace or by distance. We want to keep
that order if all other things are equal.

4 years agoPlaceLookup should return results in input order
Sarah Hoffmann [Wed, 26 Aug 2020 15:15:11 +0000 (17:15 +0200)]
PlaceLookup should return results in input order

4 years agoMerge pull request #1930 from lonvia/add-support-for-squares
Sarah Hoffmann [Wed, 26 Aug 2020 13:11:45 +0000 (15:11 +0200)]
Merge pull request #1930 from lonvia/add-support-for-squares

Add support for place=square

4 years agoadd support for place=square
Sarah Hoffmann [Wed, 26 Aug 2020 10:12:52 +0000 (12:12 +0200)]
add support for place=square

Squares are now addressable (on address level 25) and thus can
be attached to a house number via addr:place. Needed to increase
the rank range for matching up addr:place to 25.

4 years agodo not run rank 0 objects in parallel
Sarah Hoffmann [Sat, 22 Aug 2020 17:51:19 +0000 (19:51 +0200)]
do not run rank 0 objects in parallel

Waterways are at address rank 0 and do linking. This might lead to
deadlocks.

4 years agoMerge pull request #1926 from lonvia/speed-up-location-lookup
Sarah Hoffmann [Sat, 22 Aug 2020 15:04:34 +0000 (17:04 +0200)]
Merge pull request #1926 from lonvia/speed-up-location-lookup

Increase splitting for large geometries

4 years agotests: use larger grid to avoid rouding errors
Sarah Hoffmann [Sat, 22 Aug 2020 14:04:24 +0000 (16:04 +0200)]
tests: use larger grid to avoid rouding errors

4 years agoincrease splitting for large geometries
Sarah Hoffmann [Thu, 20 Aug 2020 14:37:33 +0000 (16:37 +0200)]
increase splitting for large geometries

When computing the address parts for a geometry, we need to do
a ST_Relates lookup in the location_area_large_* tables. This is
potentially very expensive for geometries with many vertices.
There is already a funtion for splitting large areas to reduce the
impact. This commit reduces the minimum area of a split, effectively
increasing the number of splits.

The effect on database size is minimal (around 3% increase), while
the indexing speed for streets increases by a good 60%.

4 years agoMerge pull request #1923 from lonvia/split-indexing-for-boundries
Sarah Hoffmann [Thu, 20 Aug 2020 13:03:29 +0000 (15:03 +0200)]
Merge pull request #1923 from lonvia/split-indexing-for-boundries

Rework indexing order of places

4 years agoMerge pull request #1924 from lonvia/installation-instructions-external-server
Sarah Hoffmann [Wed, 19 Aug 2020 13:17:32 +0000 (15:17 +0200)]
Merge pull request #1924 from lonvia/installation-instructions-external-server

docs: installation hints for external databases

4 years agodocs: installation hints for external databases
Sarah Hoffmann [Wed, 19 Aug 2020 13:00:09 +0000 (15:00 +0200)]
docs: installation hints for external databases

Fixes #1882.

4 years agoMerge pull request #1921 from lonvia/skip-over-traffic-signs
Sarah Hoffmann [Wed, 19 Aug 2020 09:50:28 +0000 (11:50 +0200)]
Merge pull request #1921 from lonvia/skip-over-traffic-signs

Remove traffic signs from full styles

4 years agomake sure that addr:* tags can always be searched for
Sarah Hoffmann [Wed, 19 Aug 2020 09:37:21 +0000 (11:37 +0200)]
make sure that addr:* tags can always be searched for

Always add contents of addr:* tags into address part of the search
table, even when there is no corresponding other name. This keeps
search tolerant to the kind of tagging where parts show up in the
address that have no corresponding object in the database or where
it is only an unaddressable object.

4 years agoadd migration for new indxing schema
Sarah Hoffmann [Tue, 18 Aug 2020 19:40:53 +0000 (21:40 +0200)]
add migration for new indxing schema

4 years agoswitch indexind to address rank
Sarah Hoffmann [Tue, 18 Aug 2020 14:58:58 +0000 (16:58 +0200)]
switch indexind to address rank

A place needs all lower address rank object indexed to make up
the address. The search rank no longer ensures that as it can have
a different ordering than the address rank.

This switches indexing rank order to address ranks. Non-address
objects (with address rank 0) are indexed together with POIs.

4 years agouse only centroid to get parent admin boundaries
Sarah Hoffmann [Sun, 16 Aug 2020 20:23:23 +0000 (22:23 +0200)]
use only centroid to get parent admin boundaries

Using the full geometry is far too expensive.

4 years agonominatim: also index boundaries by rank
Sarah Hoffmann [Sun, 16 Aug 2020 07:38:20 +0000 (09:38 +0200)]
nominatim: also index boundaries by rank

We need to make sure that the entry in serach_name from a lower rank
is indeed available.

4 years agoindex admin boundaries before everything else
Sarah Hoffmann [Fri, 14 Aug 2020 14:13:06 +0000 (16:13 +0200)]
index admin boundaries before everything else

Avoids irregularities that might happen because the address
rank of a boundary is changed through linking.

4 years agonominatim: move DBConnection class into its own file
Sarah Hoffmann [Fri, 14 Aug 2020 08:33:58 +0000 (10:33 +0200)]
nominatim: move DBConnection class into its own file

4 years agoremove traffic signs from full styles
Sarah Hoffmann [Sat, 15 Aug 2020 20:37:45 +0000 (22:37 +0200)]
remove traffic signs from full styles

Traffic signs rarely have name and are therefore mostly not
searchable. Remove them completely. Allow street lamps only when
they have a name. Removes about 2M object from a planet instance.

4 years agoMerge pull request #1920 from lonvia/remove-linked-place-when-updating
Sarah Hoffmann [Fri, 14 Aug 2020 07:44:56 +0000 (09:44 +0200)]
Merge pull request #1920 from lonvia/remove-linked-place-when-updating

Remove linked_place from extratags when updating

4 years agoremove linked_place from extratags when updating
Sarah Hoffmann [Thu, 13 Aug 2020 14:59:11 +0000 (16:59 +0200)]
remove linked_place from extratags when updating

Before updating an admin boundary we need to make sure that any
artificially generated 'linked_place' entry is removed from the
extratags column. This ensures that the place designation does
not linger when a linked place disappears and that it is updated
when the linking changes.

4 years agoMerge pull request #1919 from lonvia/tests-for-ranking
Sarah Hoffmann [Thu, 13 Aug 2020 07:13:10 +0000 (09:13 +0200)]
Merge pull request #1919 from lonvia/tests-for-ranking

More tests and fixes for address rank computation

4 years agouse address rank for address forming when available
Sarah Hoffmann [Sun, 9 Aug 2020 12:43:23 +0000 (14:43 +0200)]
use address rank for address forming when available

4 years agoboundary address ranks must not go above 25
Sarah Hoffmann [Sun, 9 Aug 2020 09:23:46 +0000 (11:23 +0200)]
boundary address ranks must not go above 25

Fixes #1914.

4 years agoadd simple tests for address rank computation
Sarah Hoffmann [Thu, 6 Aug 2020 07:22:38 +0000 (09:22 +0200)]
add simple tests for address rank computation

4 years agoalso take place tags into account for address rank
Sarah Hoffmann [Thu, 6 Aug 2020 07:20:42 +0000 (09:20 +0200)]
also take place tags into account for address rank

An admin boundary might have a place tag but no matching place node.
We still should use the place value as indicator for the address
rank in this case.

4 years agoMerge pull request #1917 from lonvia/docs-rank-levels
Sarah Hoffmann [Tue, 11 Aug 2020 13:12:16 +0000 (15:12 +0200)]
Merge pull request #1917 from lonvia/docs-rank-levels

docs: add tables for the meaning of address and search ranks

4 years agodocs: add tables for the meaning of address and search ranks
Sarah Hoffmann [Tue, 11 Aug 2020 08:01:28 +0000 (10:01 +0200)]
docs: add tables for the meaning of address and search ranks

Also makes tables a bit more readable by adding margins and better
headers.

4 years agoMerge pull request #1918 from lonvia/remove-more-osmosis-init
Sarah Hoffmann [Tue, 11 Aug 2020 09:48:17 +0000 (11:48 +0200)]
Merge pull request #1918 from lonvia/remove-more-osmosis-init

remove more traces of --osmosis-init switch

4 years agoremove more traces of osmosis-init
Sarah Hoffmann [Tue, 11 Aug 2020 08:43:04 +0000 (10:43 +0200)]
remove more traces of osmosis-init

4 years agoMerge pull request #1912 from lonvia/remove-unused-import-update-functions
Sarah Hoffmann [Sun, 9 Aug 2020 07:31:48 +0000 (09:31 +0200)]
Merge pull request #1912 from lonvia/remove-unused-import-update-functions

remove unused functions from setup and update

4 years agoremove unused functions from setup and update
Sarah Hoffmann [Thu, 6 Aug 2020 14:15:17 +0000 (16:15 +0200)]
remove unused functions from setup and update

Removes the defunct --osmosis-init and --no-api switches and the
unsupported (and unnecessary) deduplicate. Also removes
'experimental' from --setup-website as this is a required
function now.

4 years agoMerge pull request #1909 from lonvia/minor-fixes
Sarah Hoffmann [Thu, 6 Aug 2020 09:07:38 +0000 (11:07 +0200)]
Merge pull request #1909 from lonvia/minor-fixes

Make SQL debug statements execute again

4 years agoMake SQL debug statements execute again
Sarah Hoffmann [Thu, 6 Aug 2020 07:29:19 +0000 (09:29 +0200)]
Make SQL debug statements execute again

There were some old variable names used that are no longer valid.
Either fix them or remove the statement completely.

Fixes #1907.

4 years agoMerge pull request #1865 from mtmail/how-to-import-test-db
Sarah Hoffmann [Tue, 4 Aug 2020 12:31:19 +0000 (14:31 +0200)]
Merge pull request #1865 from mtmail/how-to-import-test-db

test/README.md - more instructions how to import test db

4 years agoMerge pull request #1902 from lonvia/avoid-touching-boundaries-in-addresses
Sarah Hoffmann [Tue, 4 Aug 2020 12:30:08 +0000 (14:30 +0200)]
Merge pull request #1902 from lonvia/avoid-touching-boundaries-in-addresses

Be more strict what areas make up an address

4 years agoMerge pull request #1901 from lonvia/speed-up-indexing
Sarah Hoffmann [Tue, 4 Aug 2020 10:32:16 +0000 (12:32 +0200)]
Merge pull request #1901 from lonvia/speed-up-indexing

Batch-index places at rank 30

4 years agobe more strict what areas make up an address
Sarah Hoffmann [Tue, 4 Aug 2020 10:08:50 +0000 (12:08 +0200)]
be more strict what areas make up an address

Exclude boundaries that touch a line in only one point and
that touch areas only along the boundary.

Fixes #1900.