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
marc tobias
c7a4c2c88a
test for SearchContext::setViewboxFromBox
2018-08-14 17:37:54 +02: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
9bdbbec0c8
Merge pull request #1110 from lonvia/remove-address-check-for-long-lines
...
Remove special search for address part for long ways
2018-08-04 23:19:32 +02:00
Sarah Hoffmann
646fa53b44
improve place node search when no areas found
...
Only look for place nodes in a certain radius according
to the rank_search of the place node.
2018-08-04 21:51:23 +02:00
Sarah Hoffmann
713ea080d2
Remove special search for address part for long ways
...
Ways now always have the complete set of crossing boundaries
independent of the length.
Fixes #1108 .
2018-07-22 15:05:45 +02:00
Eric Stadtherr
62747c934d
Work on setup/update scripts, unit tests, and documentation to enable Postgres server to be optionally configured on a remote host
2018-07-21 12:09:47 -06:00
Marc Tobias Metten
0892eab1d3
tests for Nominatim::TokenList
2018-07-19 14:19:50 +02:00
Sarah Hoffmann
b17019a21c
fix unit tests for class types
2018-07-12 23:59:29 +02:00
Sarah Hoffmann
be58b929f2
add tests for geocodejson and fix syntax errors
2018-07-12 22:00:18 +02:00
Sarah Hoffmann
f50f46c1ce
Merge branch 'geojson-output' of https://github.com/mtmail/Nominatim into mtmail-geojson-output
2018-07-06 20:26:33 +02:00
Sarah Hoffmann
9955155ce0
update tests for off-coast reverse geocoding
2018-07-04 21:03:04 +02:00
Sarah Hoffmann
ac29f8bc91
Merge branch 'better-reverse' of https://github.com/gemo1011/Nominatim into gemo1011-better-reverse
2018-07-02 21:33:27 +02:00
gemo1011
796f069d74
test adjusting
2018-06-27 14:55:09 +02:00
gemo1011
7585d37818
edited test
2018-06-27 14:55:07 +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
Marc Tobias Metten
7a964efb3a
search/reverse/lookup with geojson,geocodejson output
2018-05-29 17:20:34 +02:00
Sarah Hoffmann
f29c7bf910
introduce classes for token list and token types
2018-05-14 23:04:15 +02:00
Marc Tobias Metten
8841a328c8
add PHPCS Squiz.Arrays.ArrayDeclaration.KeyNotAligned rule
2018-05-08 00:37:41 +02:00
mtmail
7075a5828e
add JSON format to /status endpoint ( #1013 )
...
add JSON format to /status endpoint
2018-05-04 23:37:48 +02:00
Marc Tobias Metten
a885e7309a
PHP unit tests for DebugHtml
2018-05-03 22:19:19 +02:00
Sarah Hoffmann
5182da9f45
add tests for address tag parsing for search name
2018-04-15 22:52:42 +02:00
mtmail
3087ac1145
PHP code style: enforce long array initialisation ( #1015 )
2018-04-13 13:18:29 +02:00
marc tobias
31c7f25541
rename parentof to hierarchy and other lonvia Mar/29 PR feedback
2018-04-12 22:02:24 +02:00
Marc Tobias Metten
0eb71cdce8
only return polygon if &polygon_geojson=1 is set
2018-04-12 22:01:10 +02:00
Marc Tobias Metten
1e28f2478c
details support json output
2018-04-12 22:01:10 +02:00
mtmail
3cdbcbff8f
get apt-get php-db package running on travis-ci ( #973 )
...
travis: /usr/bin/env php whenever calling PHP scripts to deal with phpenv
2018-04-12 00:54:59 +02:00
Sarah Hoffmann
9a3bc9cc1e
Merge pull request #1010 from lonvia/ignore-unicode-format-characters
...
Ignore Unicode format characters for normalization
2018-04-10 23:48:58 +02:00
Sarah Hoffmann
6bd905ff43
update osm2pgsql (name:suffix)
...
Fixes #823 .
2018-04-10 23:46:57 +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
28ee59dd64
test: drop template DB when something goes wrong during creation
...
Fixes #951 .
2018-04-08 10:06:33 +02:00
Marc Tobias Metten
1cb87164d9
NominatimTest.php => LibTest.php
2018-03-27 01:38:39 +02:00
Sarah Hoffmann
5c8fbe8186
Merge pull request #941 from mtmail/parameter-parser-tests2
...
PHP tests for ParameterParser
2018-03-06 23:25:20 +01:00
marc tobias
7fd46dcee9
ParameterParser: getSet default value doesnt have to be part of the set
2018-03-06 14:53:23 +01:00