Sarah Hoffmann
06fdfad89e
link against place nodes by place type
...
If a boundary relation has no label member preferably
link against a place node with the same place type.
Also inherit the rank_address from the place node (only
has an effect when linking via lable member or place type).
2020-02-28 15:22:48 +01:00
Sarah Hoffmann
00ca493f33
move linked place type into linked_place extratags
...
Using linked_place means that we don't overwrite any
place tags on the boundary. This is important when we
wanto to use the information for linking.
2020-02-28 15:22:48 +01:00
Sarah Hoffmann
6073d948e6
fix duplicate keys in tests
...
The tests suddenly failed because the unique key constraint
is more strict and does no longer include the type.
2020-02-12 11:29:33 +01:00
Sarah Hoffmann
d732dc3bb2
update place address levels
...
Adds province and allotments and downgrades hamlet.
2020-01-08 23:53:03 +01:00
Sarah Hoffmann
2bbe5017d4
use bbox of geometry when searching for attached streets
...
As we are doing a distance search, this improves results for
large places like airports.
Fixes #1442 .
2019-07-28 13:28:27 +02:00
Sarah Hoffmann
e164d53fcc
adapt tests to new place address ranks
2019-06-30 23:09:43 +02:00
marc tobias
7d9dbd62c7
Support housenumber=0 in interpolations
2019-04-02 15:13:45 +02:00
Sarah Hoffmann
c822012aad
ignore admin boundary ways for countries and states
...
Countries and states are mapped world-wide as relations by now.
Fixes #543 and #1291 .
2019-01-26 13:37:10 +01:00
Sarah Hoffmann
cc17aa8d6b
Remove postcodes also from word table when they no longer exist
...
Also adds tests for postcode updates.
Fixes #1273 .
2019-01-04 23:11:47 +01:00
Sarah Hoffmann
52178caa98
fix tests
2018-11-28 23:40:17 +01:00
Sarah Hoffmann
e10d11c6c7
Make rank assignments configurable
...
The initial search and address rank is saved in a table
that is set up from a json configuration file. Ranks may
be assigned on a country level according to class and
type of the object. Special handling that depends on the
geometry or OSM type is still hard-coded in placex insert.
The new default config file mimicks the current assignment
as close as possible. A couple of exceptions have been
removed, most notably the exception for Irish townlands.
2018-11-24 16:21:16 +01:00
Sarah Hoffmann
43c2eb383e
Remove country and state nodes from address computation
...
OSM has by now almost complete coverage of admin
boundaries up to state level. Place nodes will do more
harm than good in this case.
2018-11-17 23:32:08 +01:00
Sarah Hoffmann
48d4ea5542
Do not have postcode node appear in addresses directly
...
Many of the postcode nodes are actually derived from
incomplete addresses and are as such not even centroids.
Better let them only take part in the address computation
via the postcode table.
2018-08-05 14:25:20 +02:00
Sarah Hoffmann
743ec43460
nearest place search should match any of given tokens not all
...
When multiple isin tokens are given, then these are duplicates
and it is enough that any one of them is found in the
name_vector.
Fixes #1056 .
2018-06-14 00:11:19 +02:00
Sarah Hoffmann
5182da9f45
add tests for address tag parsing for search name
2018-04-15 22:52:42 +02:00
Sarah Hoffmann
ae83ceab5e
ignore Unicode format characters for normalization
...
Also adds tests.
Fixes #1007 .
2018-04-10 22:48:17 +02:00
Sarah Hoffmann
36fa21d7ce
fix more behave table formatting errors
2018-02-26 23:41:57 +01:00
Edward Betts
7e00a6e2ff
Correct spelling mistakes.
2018-02-18 13:11:35 +00:00
Sarah Hoffmann
35c7269bac
when linking waterway ways and relations allow all river-like types
...
Fixes #848
2017-12-16 17:00:55 +01:00
Sarah Hoffmann
218b70fd96
test: remove road-fallback test from db tests
...
This should be tested in the api section.
2017-10-03 14:26:08 +02:00
Sarah Hoffmann
7ca5219297
fixup tests
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
e55ac77c94
add simple tests for postcode import
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
a44377c7b0
fix postcode-related tests
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
9785aff76c
restrict linked places to place nodes
...
Avoids getting the wrong entry when the linked place has
double tagging.
Fixes #573 .
2017-06-07 21:32:02 +02:00
Sarah Hoffmann
050b0a2ced
remove street and addr_place columns in placex
...
The information is onyl needed for parenting,
so no need to store it permanently.
2017-04-08 19:58:10 +02:00
Sarah Hoffmann
8c7fa0213f
fix DB bd tests for address hstore
2017-04-08 19:57:36 +02:00
Sarah Hoffmann
43eedfd253
abort osmline update correctly when way nodes are missing
...
Fixes #695 .
2017-03-30 22:14:47 +02:00
Sarah Hoffmann
b3186d07f5
for roads add all intersecting boundaries to address list
...
When roads cross boundaries, both administrative entities should
be added to the address list, so that both entities can be used
for searching. Also allows in a second step to better sort out
addresses of POIs on such roads.
Fixes #121 .
2017-03-18 12:17:48 +01:00
Edward Betts
7e3af2debc
correct spelling mistakes
2017-03-08 15:06:50 +00:00
Sarah Hoffmann
b2be8c3ab7
move php tests in common test dir and unify READMEs
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
7f4e7a2579
add interpolation tests
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
82a0e23265
tests for linking
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
e36e485698
add naming tests
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
ddb7296663
add parenting tests
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
604706a827
ad search_name import tests
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
c594644aa7
add placex import tests
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
47f94c6988
simple search steps
2016-12-30 22:58:57 +01:00
Sarah Hoffmann
c56c09e2c0
rename and add basic tests
2016-12-30 22:58:57 +01:00