]> git.openstreetmap.org Git - nominatim.git/log
nominatim.git
3 years agoremove HTML output and UI elements
Sarah Hoffmann [Tue, 27 Oct 2020 10:05:03 +0000 (11:05 +0100)]
remove HTML output and UI elements

3 years agoremove hierarchy endpoint
Sarah Hoffmann [Tue, 27 Oct 2020 09:38:08 +0000 (10:38 +0100)]
remove hierarchy endpoint

This endpoint was never maintained and most of the information
can be obtained via the details endpoint.

3 years agoMerge pull request #2030 from lonvia/improve-ci
Sarah Hoffmann [Wed, 28 Oct 2020 14:20:40 +0000 (15:20 +0100)]
Merge pull request #2030 from lonvia/improve-ci

Small improvements for github actions run

3 years agoaction: cache downloaded dependencies
Sarah Hoffmann [Wed, 28 Oct 2020 10:54:37 +0000 (11:54 +0100)]
action: cache downloaded dependencies

3 years agoMerge pull request #2027 from lonvia/remove-duplicate-admin-boundaries
Sarah Hoffmann [Wed, 28 Oct 2020 10:11:42 +0000 (11:11 +0100)]
Merge pull request #2027 from lonvia/remove-duplicate-admin-boundaries

Handle duplicated admin boundaries

3 years agoactions: tweak database settings
Sarah Hoffmann [Wed, 28 Oct 2020 10:10:14 +0000 (11:10 +0100)]
actions: tweak database settings

Disabling fsync and friends should speed up the CI run
significantly.

3 years agouse highest admin boundary for duplicated ones
Sarah Hoffmann [Mon, 26 Oct 2020 20:11:06 +0000 (21:11 +0100)]
use highest admin boundary for duplicated ones

3 years agodisable admin level 5 in Russia
Sarah Hoffmann [Mon, 26 Oct 2020 19:17:28 +0000 (20:17 +0100)]
disable admin level 5 in Russia

They either interfere with cities or refer to historical boundaries.

3 years agominor fixes for geometry compuation during boundary ranking
Sarah Hoffmann [Fri, 23 Oct 2020 08:43:57 +0000 (10:43 +0200)]
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.

3 years agodetect and remove admin boundary duplicates
Sarah Hoffmann [Tue, 20 Oct 2020 21:26:44 +0000 (23:26 +0200)]
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.

3 years agoMerge pull request #2029 from lonvia/master
Sarah Hoffmann [Wed, 28 Oct 2020 09:12:52 +0000 (10:12 +0100)]
Merge pull request #2029 from lonvia/master

Switch CI to github actions

3 years agoswitch CI badge to github actions
Sarah Hoffmann [Wed, 28 Oct 2020 09:11:22 +0000 (10:11 +0100)]
switch CI badge to github actions

3 years agoswitch CI to github acitons
Sarah Hoffmann [Tue, 27 Oct 2020 20:49:06 +0000 (21:49 +0100)]
switch CI to github acitons

3 years agoMerge pull request #2025 from lonvia/fix-secondary-importance-for-countries
Sarah Hoffmann [Thu, 22 Oct 2020 11:43:22 +0000 (13:43 +0200)]
Merge pull request #2025 from lonvia/fix-secondary-importance-for-countries

Improve secondary result ordering for administrative boundaries

3 years agoadjust secondary order when no addressimportance available
Sarah Hoffmann [Thu, 22 Oct 2020 08:20:16 +0000 (10:20 +0200)]
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.

3 years agoreadd boundary:administrative to class importance
Sarah Hoffmann [Thu, 22 Oct 2020 08:16:04 +0000 (10:16 +0200)]
readd boundary:administrative to class importance

3 years agoMerge pull request #2022 from lonvia/populate-rank-25
Sarah Hoffmann [Tue, 20 Oct 2020 21:26:18 +0000 (23:26 +0200)]
Merge pull request #2022 from lonvia/populate-rank-25

reorganize ranks of high-level place types

3 years agoreorganize ranks of high-level place types
Sarah Hoffmann [Tue, 20 Oct 2020 18:20:49 +0000 (20:20 +0200)]
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.

3 years agoMerge pull request #2019 from lonvia/find-pgconfig-inpostgresql-repo
Sarah Hoffmann [Tue, 20 Oct 2020 13:02:00 +0000 (15:02 +0200)]
Merge pull request #2019 from lonvia/find-pgconfig-inpostgresql-repo

Add support for finding pg_config in Postgresql repos

3 years agoadd support for finding pg_config in Postgresql repos
Sarah Hoffmann [Tue, 20 Oct 2020 09:39:00 +0000 (11:39 +0200)]
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.

3 years agoMerge pull request #2018 from lonvia/update-osm2pgsql
Sarah Hoffmann [Tue, 20 Oct 2020 09:33:36 +0000 (11:33 +0200)]
Merge pull request #2018 from lonvia/update-osm2pgsql

Update to latest osm2pgsql

3 years agoupdate to latest osm2pgsql
Sarah Hoffmann [Tue, 20 Oct 2020 09:08:07 +0000 (11:08 +0200)]
update to latest osm2pgsql

Important changes:

* fix disabling of JIT in Postgresql
* support for finding latests Postgresql from their repos
* no longer create nodes table with flatnodes

3 years agoadd explicit bbox contains check
Sarah Hoffmann [Mon, 19 Oct 2020 08:39:01 +0000 (10:39 +0200)]
add explicit bbox contains check

Now that the containment check uses ST_Relate, we need to add
a separate bbox contains check to ensure that Postgis does the
efficient check first. Note that we still cannot get rid of the
overlap(&&) check because then Postgis will use the wrong indexes.

3 years agoMerge pull request #2016 from lonvia/locale-address-russia
Sarah Hoffmann [Sun, 18 Oct 2020 07:48:23 +0000 (09:48 +0200)]
Merge pull request #2016 from lonvia/locale-address-russia

add country-specific address ranks for Russia

3 years agoMerge pull request #2015 from lonvia/cleanup-address-computation
Sarah Hoffmann [Sun, 18 Oct 2020 07:48:05 +0000 (09:48 +0200)]
Merge pull request #2015 from lonvia/cleanup-address-computation

Rework collection of address parts

3 years agoadd country-specific address ranks for Russia
Sarah Hoffmann [Sat, 17 Oct 2020 15:54:06 +0000 (17:54 +0200)]
add country-specific address ranks for Russia

Removes admin level 7, which should not exist and promotes
admin level 8 to municipality level.

place=municipality is only used for boroughs of St. Petersburg,
so demote to level 18.

Fixes #926.

3 years agoadd tests for rank computation
Sarah Hoffmann [Sat, 17 Oct 2020 15:51:22 +0000 (17:51 +0200)]
add tests for rank computation

3 years agoadd tests for address computation
Sarah Hoffmann [Fri, 16 Oct 2020 09:07:17 +0000 (11:07 +0200)]
add tests for address computation

3 years agorevert to && comparison for geometries
Sarah Hoffmann [Fri, 16 Oct 2020 07:49:48 +0000 (09:49 +0200)]
revert to && comparison for geometries

Postgis 3 picks the wrong index when using ~ or @.

3 years agouse computed centroid for location_area_large
Sarah Hoffmann [Thu, 15 Oct 2020 15:30:52 +0000 (17:30 +0200)]
use computed centroid for location_area_large

The new address computation assumes that the centroid is inside
the area. Therefore we cannot use the centroid function. Use the
pre-computed centroid instead which has already been corrected to
be inside the area.

3 years agocorrectly set from area column in place_addressline
Sarah Hoffmann [Thu, 15 Oct 2020 10:06:53 +0000 (12:06 +0200)]
correctly set from area column in place_addressline

This was always set to true which brings us to the question
if it is even still needed.

3 years agofix use of geometry operators
Sarah Hoffmann [Thu, 15 Oct 2020 10:06:18 +0000 (12:06 +0200)]
fix use of geometry operators

@ is contained by while ~ is contains.

3 years agodemote admin boundaries for place areas
Sarah Hoffmann [Wed, 14 Oct 2020 09:33:47 +0000 (11:33 +0200)]
demote admin boundaries for place areas

Also demote the address rank of an admin boundary when there
is a place area of higher rank that completely contains the
area. This catches the case where city boundaries do not exactly
align with administrative units (see for example Moscow).

3 years agoexclude rank 25 when computing addresses of streets
Sarah Hoffmann [Tue, 13 Oct 2020 20:36:17 +0000 (22:36 +0200)]
exclude rank 25 when computing addresses of streets

Address rank 25 is used for squares which are address-wise on the
same level as streets.

3 years agooverhaul address computation
Sarah Hoffmann [Tue, 13 Oct 2020 20:10:07 +0000 (22:10 +0200)]
overhaul address computation

This is a complete rewrite of the selection of address parts to
be inserted into the place_addressline table.

The new algorithm selects for each rank:
* the boundary overlapping with the addressee and contained
  in the already selected boundaries of lower rank, or failing that
* the place node closest to the addressee that is contained in
  the already selected boundaries and in the influence radius
  of already selected place nodes of lower rank

Place nodes that are not contained in already selected boundaries
of lower rank are completely thrown away. All other candidates are
added as non-address parts.

3 years agomove ordering out of getNearFeatures
Sarah Hoffmann [Tue, 13 Oct 2020 12:57:11 +0000 (14:57 +0200)]
move ordering out of getNearFeatures

The two places where the function is called have different ordering
requirement.

3 years agoMerge pull request #2012 from lonvia/format-reverse-debug-output
Sarah Hoffmann [Tue, 13 Oct 2020 07:23:43 +0000 (09:23 +0200)]
Merge pull request #2012 from lonvia/format-reverse-debug-output

use Debug class for formatting reverse debug output

3 years agouse Debug class for formatting reverse debug output
Sarah Hoffmann [Mon, 12 Oct 2020 15:12:03 +0000 (17:12 +0200)]
use Debug class for formatting reverse debug output

3 years agoMerge pull request #2011 from lonvia/increase-city-radius
Sarah Hoffmann [Mon, 12 Oct 2020 14:17:39 +0000 (16:17 +0200)]
Merge pull request #2011 from lonvia/increase-city-radius

Increase radius of influence around city nodes

3 years agoincrease radius of influence around city nodes
Sarah Hoffmann [Mon, 12 Oct 2020 12:17:37 +0000 (14:17 +0200)]
increase radius of influence around city nodes

The current radius does not cover cities with more than a
million inhabitants well.

3 years agoMerge pull request #2004 from lonvia/demote-place-nodes-in-admin-areas
Sarah Hoffmann [Mon, 12 Oct 2020 09:54:52 +0000 (11:54 +0200)]
Merge pull request #2004 from lonvia/demote-place-nodes-in-admin-areas

demote place nodes in admin areas

3 years agowhen linking always check against original address rank
Sarah Hoffmann [Sun, 11 Oct 2020 10:29:49 +0000 (12:29 +0200)]
when linking always check against original address rank

3 years agomake housenumber interpolation tests more lenient
Sarah Hoffmann [Sun, 11 Oct 2020 08:32:35 +0000 (10:32 +0200)]
make housenumber interpolation tests more lenient

3 years agodemote place nodes in admin areas
Sarah Hoffmann [Wed, 7 Oct 2020 15:33:52 +0000 (17:33 +0200)]
demote place nodes in admin areas

If a place node of city rank and above finds itself in an
administrative boundary of the same address rank, then
increase the address rank by 2. This catches the rather
frequent case where city suburbs are tagged for historical
reasons as towns or villages.

3 years agoMerge pull request #2008 from lonvia/docs-missing-index-migration
Sarah Hoffmann [Sun, 11 Oct 2020 09:05:59 +0000 (11:05 +0200)]
Merge pull request #2008 from lonvia/docs-missing-index-migration

docs: migration to new wikipedia needs new index

3 years agodocs: migration to new wikipedia needs new index
Sarah Hoffmann [Sun, 11 Oct 2020 08:40:23 +0000 (10:40 +0200)]
docs: migration to new wikipedia needs new index

Fixes #1998.

3 years agoMerge pull request #2006 from mtmail/ubuntu-20-postgresql-contrib
Sarah Hoffmann [Sun, 11 Oct 2020 07:45:37 +0000 (09:45 +0200)]
Merge pull request #2006 from mtmail/ubuntu-20-postgresql-contrib

Ubuntu 20: use postgresql-contrib-12 so no version higher gets installed

3 years agoMerge pull request #2003 from lonvia/admin-levels-indonesia
Sarah Hoffmann [Sun, 11 Oct 2020 07:43:33 +0000 (09:43 +0200)]
Merge pull request #2003 from lonvia/admin-levels-indonesia

Adapt address levels for admin boundaries in Indonesia

3 years agoUbuntu 20: use postgresql-contrib-12 so no version higher gets installed
marc tobias [Sat, 10 Oct 2020 00:42:46 +0000 (02:42 +0200)]
Ubuntu 20: use postgresql-contrib-12 so no version higher gets installed

3 years agoadapt address levels for admin boundaries in Indonesia
Sarah Hoffmann [Fri, 9 Oct 2020 20:28:06 +0000 (22:28 +0200)]
adapt address levels for admin boundaries in Indonesia

3 years agoMerge pull request #2002 from lonvia/analyse-indexing-script
Sarah Hoffmann [Fri, 9 Oct 2020 18:23:51 +0000 (20:23 +0200)]
Merge pull request #2002 from lonvia/analyse-indexing-script

Add script for detailed explaing of indexing trigger

3 years agoadd script for detailed explaing of indexing trigger
Sarah Hoffmann [Fri, 9 Oct 2020 15:20:22 +0000 (17:20 +0200)]
add script for detailed explaing of indexing trigger

3 years agoMerge pull request #1996 from lonvia/remove-postcode-search-structured
Sarah Hoffmann [Tue, 6 Oct 2020 15:04:22 +0000 (17:04 +0200)]
Merge pull request #1996 from lonvia/remove-postcode-search-structured

Restrict postcode searches to postcode in first token

3 years agorestrict postcode searches to postcode in first token
Sarah Hoffmann [Tue, 6 Oct 2020 12:00:43 +0000 (14:00 +0200)]
restrict postcode searches to postcode in first token

In structured queries we should only assume that it is
a postcode search when only the postcode and optionally
the country is given. If any other term is present, it
is better to avoid the search for postcode as it yields
too many bad searches. Given that the terms in a structured
query are ordered, this means that the postcode must be
the first token just like in the unstructured query.

Fixes #1988.

3 years agoRevert "adapt tests to rank_search removal"
Sarah Hoffmann [Tue, 6 Oct 2020 11:59:50 +0000 (13:59 +0200)]
Revert "adapt tests to rank_search removal"

This reverts commit 2a717da8508ed697bfe6f5eded4e397054570a7a.

3 years agoMerge pull request #1995 from lonvia/update-osm2pgsql
Sarah Hoffmann [Mon, 5 Oct 2020 16:14:29 +0000 (18:14 +0200)]
Merge pull request #1995 from lonvia/update-osm2pgsql

update to latest osm2pgsql version

3 years agoupdate to latest osm2pgsql version
Sarah Hoffmann [Mon, 5 Oct 2020 15:11:13 +0000 (17:11 +0200)]
update to latest osm2pgsql version

The latest version of osm2pgsql no longer creates indexes on
the members of planet_osm_rels. So we do that ourselves.
Given that we only need to access associated street relations,
the index can become quite a bit smaller.

3 years agoMerge pull request #1986 from mtmail/document-drop-idx_placex_geometry_reverse_lookup...
Sarah Hoffmann [Mon, 5 Oct 2020 14:18:46 +0000 (16:18 +0200)]
Merge pull request #1986 from mtmail/document-drop-idx_placex_geometry_reverse_lookupPoint

migration guide: idx_placex_geometry_reverse_lookupPoint can be dropped

3 years agoMerge pull request #1993 from mtmail/country-name-eSwatini
Sarah Hoffmann [Mon, 5 Oct 2020 14:17:54 +0000 (16:17 +0200)]
Merge pull request #1993 from mtmail/country-name-eSwatini

country names: Swaziland => eSwatini

3 years agocountry names: Swaziland => eSwatini
marc tobias [Sun, 4 Oct 2020 11:38:15 +0000 (13:38 +0200)]
country names: Swaziland => eSwatini

3 years agomigration guide: idx_placex_geometry_reverse_lookupPoint can be dropped
marc tobias [Wed, 30 Sep 2020 12:28:20 +0000 (14:28 +0200)]
migration guide: idx_placex_geometry_reverse_lookupPoint can be dropped

3 years agoMerge pull request #1984 from lonvia/remove-reverse-index
Sarah Hoffmann [Wed, 30 Sep 2020 10:02:34 +0000 (12:02 +0200)]
Merge pull request #1984 from lonvia/remove-reverse-index

Remove unused idx_placex_geometry_reverse_lookupPoint

3 years agoremove removed index from database check
Sarah Hoffmann [Wed, 30 Sep 2020 09:33:15 +0000 (11:33 +0200)]
remove removed index from database check

3 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.

3 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

3 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

3 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.

3 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

3 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.

3 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

3 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

3 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.

3 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.

3 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.

3 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

3 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.

3 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

3 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

3 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.

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

3 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

3 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

3 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

3 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.

3 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.

3 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.

3 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

3 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.

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

3 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

3 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.

3 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

3 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.

3 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.

3 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

3 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

3 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

3 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

3 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

3 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.