Sarah Hoffmann
4856f56d61
adapt test to change in hamlet classification
2020-01-23 22:26:47 +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
20d541af06
remove osm2pgsql tag tests
...
These tests are now part of the osm2pgsql test suite.
2020-01-04 16:23:29 +01:00
Sarah Hoffmann
f8bd4f5133
add test for finding housenumber 0
2019-12-01 20:36:59 +01:00
Sarah Hoffmann
bfe92ea191
bdd tests: enforce use of full import style
2019-12-01 16:25:39 +01:00
Sarah Hoffmann
9fed91a47f
adapt tests for new wikipedia tables
2019-11-20 09:57:40 +01:00
Sarah Hoffmann
e0de838b13
adapt tests to short_name demotion
2019-10-28 22:53:41 +01:00
marc tobias
3af1520461
lookup endpoint returns boundingbox
2019-08-05 23:32:46 +02: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
marc tobias
1560685020
lookup endpoint supports jsonv2 and geocodejson output now
2019-07-21 23:20:48 +02:00
Sarah Hoffmann
4c1793b4e3
recreate interpolations when one of their support nodes changes
...
A simple update is not enough because the interpolation splits
might change as well as the housenumbers.
Fixes #1360 .
2019-07-03 23:15:54 +02:00
Sarah Hoffmann
cdc7d0fe0e
remove visibility modifier from constants again
...
Only supported on PHP >= 7.1.
2019-07-02 23:24:49 +02:00
Sarah Hoffmann
e164d53fcc
adapt tests to new place address ranks
2019-06-30 23:09:43 +02:00
Sarah Hoffmann
38a99856c0
Rework word set computation
...
Switch from an recursive algorithm for computing the word sets
to an iterative one that benefits from caching intermediate
results. This considerably reduces the amount of memory needed,
so that the depth restriction can be dropped. To ensure that
the number of word sets remains manageable, only sets up to
a certain length are accepted and only a certain number of
total word sets. If word sets need to be dropped, we drop
the ones with more words per word set first.
To further reduce the number of potential word sets, the valid
tokens are looked up first and then only word sets containing
valid tokens are computed.
Fixes #1403 , #1404 and #654 .
2019-06-29 18:22:31 +02:00
Sarah Hoffmann
2c21cbb5e6
update osm2pgsql (downgrading unnamed places)
...
Also adds tests for updating unnamed places.
2019-06-10 18:22:11 +02:00
Sarah Hoffmann
3bc4b4bf9f
update osm2pgsql (import special tags)
2019-06-09 13:58:05 +02:00
Sarah Hoffmann
b612b99421
Merge pull request #1321 from mtmail/interpolating-0-housenumbers
...
Support housenumber=0 in interpolations
2019-04-19 18:29:43 +02:00
marc tobias
7d9dbd62c7
Support housenumber=0 in interpolations
2019-04-02 15:13:45 +02:00
marc tobias
c9a6350894
On postcode searches observe given bounded viewbox
2019-04-02 14:49:31 +02:00
Sarah Hoffmann
2a4198f94d
add test for issue #1343
...
Keyword details for countries (which don't have address details).
2019-03-26 21:49:44 +01:00
marc tobias
890d415e1f
Nominatim::DB support input variables, custom error messages
2019-03-10 16:56:36 +01:00
marc tobias
d4b633bfc5
replace database abstraction DB with PDO
2019-03-09 00:18:15 +01:00
Sarah Hoffmann
bdd64093e5
Merge pull request #1295 from mtmail/move-searchrank-labels-to-php
...
Remove get_addressrank_label. Move get_searchrank_label to PHP
2019-02-10 17:22:49 +01:00
marc tobias
3be797c759
BDD: support for DB_PORT environment variable
2019-02-09 20:54:18 +01:00
marc tobias
853b536394
Remove get_addressrank_label. Move get_searchrank_label to PHP
2019-02-09 20:38:36 +01:00
marc tobias
b56f7e8ad2
remove phpunit config key deprecated since version 3.5
2019-02-09 00:37:11 +01: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
e24ea7c1bb
add tests for import of interpolations
2019-01-08 22:54:41 +01:00
Sarah Hoffmann
caa8210112
Switch to configurable style for osm2pgsql
...
Includes the full style, which is the same as now (minus
sidwalk exclusion) and a minimal style for boundaries only.
2019-01-08 22:54:41 +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
d4fa528d5c
Merge pull request #1245 from lonvia/address-levels-from-json
...
Make rank assignments configurable
2018-12-01 21:43:53 +01:00
Sarah Hoffmann
52178caa98
fix tests
2018-11-28 23:40:17 +01:00
marc tobias
417b5b031b
test/README.txt: BUILDDIR should be BUILD_DIR [SKIP CI]
2018-11-27 20:17:27 +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
f0088ca2be
Merge pull request #1237 from ckquentvp/fix-accept-language-underscore-parsing
...
match languages such as ja_rm (or any other with underscore) properly
2018-11-24 16:20:00 +01:00
name
3cd3d1f5ae
test languages with underscores (e.g. ja_rm)
2018-11-24 16:52:24 +02:00
Sarah Hoffmann
71ef94dae6
add Makefile for tests
2018-11-24 12:25:28 +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
c84648c157
update osm2pgsql (restrict operator)
...
Fixes #1176 .
2018-11-17 17:32:30 +01:00
marc tobias
aa41b813b8
2018 TIGER data conversion scripts, add documentation to /docs/data-sources
2018-11-15 23:01:08 +01:00
marc tobias
e4a51e460e
set exception handler by request format, not always HTML
2018-10-03 22:58:20 +02:00
marc tobias
c73737f77f
adjust BDD api test cases to 2018 test database
2018-09-28 18:46:35 +02:00
Sarah Hoffmann
09595697cc
Merge pull request #1189 from mtmail/classtypes-unit-tests
...
PHP unit tests for Nominatim\ClassTypes
2018-09-22 10:48:32 +02:00
marc tobias
f0daf11375
PHP unit tests for Nominatim\ClassTypes
2018-09-20 19:15:58 +02:00
marc tobias
e2a7a795d4
fix AddressDetails->getAddressDetails, add tests
2018-09-20 02:16:01 +02:00
marc tobias
a9bdac836c
make PHP testsuite work with PHPUnit6
2018-09-15 15:23:10 +02:00
Sarah Hoffmann
a5d35d6e84
use namespaces for PHPUnit classes
...
This is mandatory for PHPUnit 6.x. Older versions provide a
forward compatibility layer, so we should be good.
Fixes #1150 .
2018-08-25 14:57:31 +02:00
Sarah Hoffmann
84cfe5db53
fix warning in keyword output of details
2018-08-22 22:35:46 +02:00
Sarah Hoffmann
88374c2522
improve test coverage for reverse and debug output
2018-08-20 23:05:49 +02:00
Sarah Hoffmann
de8888ec58
directly do country search for reverse zoom < 5
...
Fixes #1145 .
2018-08-20 22:09:08 +02:00