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.
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.
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.
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.
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.
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.
Sarah Hoffmann [Thu, 30 Jul 2020 21:39:55 +0000 (23:39 +0200)]
make house number reappear in display name on named POIs
After 6cc6cf950c3c08103e6159a079c85b5a4f1c09fa names and house numbers
of POIS got mingled into a single item when creating the display name.
Add the house number as extra information without place_id to avoid
later mangling.
Sarah Hoffmann [Tue, 28 Jul 2020 20:15:25 +0000 (22:15 +0200)]
preserve admin level hierarchy between admin boundaries
When the address rank of an admin boundary is changed because
of an attached place type, it may happen that the admin_level
hierarchy gets inversed. Avoid that by adjusting the address
rank if an inversion is detected.
Sarah Hoffmann [Sun, 26 Jul 2020 09:56:00 +0000 (11:56 +0200)]
implicitly connect to database during setup
Make access to the DB object a function, so that the connection
can be opened implicitly when the object is accessed for the first
time. This way we no longer need to check beforehand if a specific
function of the setup needs DB access or not.
Also move the check for the module to the relevant sub step.
Sarah Hoffmann [Wed, 8 Jul 2020 06:32:46 +0000 (08:32 +0200)]
reenable debug parameter
The parameter got lost when switching to website settings.
Given that the use of a fixed parameter is limited,
debugging output can now only be set via the URL parameter.
Sarah Hoffmann [Sun, 5 Jul 2020 13:38:49 +0000 (15:38 +0200)]
reverse: ignore place nodes without an address rank
We already exclude all polygon places without an address
rank. place nodes should also be ignored. This removes
places like locality from the reverse results.
Sarah Hoffmann [Tue, 23 Jun 2020 21:25:46 +0000 (23:25 +0200)]
Merge branch 'split-off-test-tool-installation-instructions' of https://github.com/mtmail/Nominatim into mtmail-split-off-test-tool-installation-instructions
Sarah Hoffmann [Wed, 6 May 2020 20:22:24 +0000 (22:22 +0200)]
change place node expansion for large area table
So far we've used a buffer around a place node to define its
potential address reach. This had two problems: the buffer was
so large that addresses often contain false positives and the
buffer is really distorted when getting closer to the poles.
Change the buffer here to draw a bounndig box at a certain
distance in meter. This means that we always use the same
box everywhere on the planet and can make the extent much
smaller. Using a box has the advantage that it is much faster
to figure out if a point is within the box.