Sarah Hoffmann
81a7ea36db
more API tests (mostly for user errors)
2017-09-19 23:06:31 +02:00
Sarah Hoffmann
af74c037f4
enable coverage also for tests with HTTP errors
2017-09-19 22:42:09 +02:00
Sarah Hoffmann
6796749136
Merge pull request #798 from mtmail/coordinate-extract-missing-first-minus-sign
...
fix to NearPoint::extractFromQuery handling first minus sign
2017-09-19 21:23:49 +02:00
marc tobias
e67a6dc321
fix to NearPoint::extractFromQuery handling first minus sign
2017-09-19 12:40:10 +01:00
Sarah Hoffmann
15a215729e
fix handling of near queries with special search
...
Make sure to use the classtype tables with near search and
allow to search for arbitrary key/values (forbidding it
for viewbox searches).
Add tests for near queries.
2017-09-19 00:07:11 +02:00
Sarah Hoffmann
ce95c55d65
fix display of nearpoint in debug view
2017-09-18 23:06:30 +02:00
Sarah Hoffmann
8eb066c692
reinstate key-value amenity search
...
Reenable search by the secret special term [key=value]
matching against the given main tag. Note that for most
cases that works only for tags that also have a special
search table.
2017-09-18 22:09:06 +02:00
Sarah Hoffmann
a0de20e9bc
more API tests for code coverage
...
Also fixes two minor issues related to structured queries.
2017-09-17 23:30:08 +02:00
Sarah Hoffmann
2dbf58d461
improve code coverage documentation
2017-09-17 20:27:06 +02:00
Sarah Hoffmann
9a47e1834f
reduce message frequency during indexing
2017-09-17 20:13:05 +02:00
Sarah Hoffmann
61ed3b8ab3
setup: bail out earl when something is wrong with nominatim.so
2017-09-17 20:07:03 +02:00
Sarah Hoffmann
bb1552be29
setup: error out when web site user does not exist
...
User is needed to be able to grant rights.
2017-09-17 19:51:00 +02:00
Sarah Hoffmann
5614ece9a1
run psql in quiet mode unless 'verbose' is enabled
2017-09-17 11:34:35 +02:00
Sarah Hoffmann
3546b30473
timestamp info message and repeat warnings at end
2017-09-17 11:06:52 +02:00
Sarah Hoffmann
cf32da3748
docs: add more requirements for running tests
2017-09-16 22:11:39 +02:00
Sarah Hoffmann
909b0c7462
Merge pull request #782 from lonvia/rework-postcodes
...
Rework handling of artificial postcode centroids
2017-09-16 15:54:55 +02:00
Sarah Hoffmann
15cd5c777b
README: point to release instalation instructions
2017-09-06 20:36:59 +02:00
Sarah Hoffmann
37c653396b
increase search rank of leisure=park
...
Fixes #786 .
2017-08-31 21:10:48 +02:00
Sarah Hoffmann
8c4bcd36ea
check that replication URL points to a repo of OSM diffs
...
Also check that pyosmium does not return None to work around
a bad return code in the current release of pyosmium-get-changes.
Fixes #784 .
2017-08-29 21:05:54 +02:00
Sarah Hoffmann
88610b1b74
further restrict results for <postcode>, <term>
...
Disallow postcode operator together with housenumbers
and force results around a postcode when no address is
given.
2017-08-21 22:29:51 +02:00
Sarah Hoffmann
9aeb111fba
tests: add new admin scene
2017-08-20 09:29:56 +02:00
Sarah Hoffmann
7ca5219297
fixup tests
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
f4a00eba26
enable details view for artificial postcodes
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
86a8900e21
fix subqueries when getting details for postcodes
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
67bb885900
throw away searches with two postcodes
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
f9205caf22
adapt scene generation tool to newest libosmium
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
3c9af7f151
move adding postcodes to word table to calculation step
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
5e54e78176
add migration path for postcodes
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
caf018538f
normalize all postcodes before use
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
ccae2c733b
simplify search for artificial postcodes
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
5673c4cf91
special handling for estimated postcode in areas
...
Don't add a postcode at all if multiple estimated
postcodes fall into the area.
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
ec8af1dd40
fix more tests
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
50c5abf6bb
fix API tests wrt postcodes
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
5237f44c4a
remove lat/lon check for search terms
...
Was only used with GB postcodes which were removed.
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
99e9abe843
require postcodes to match exactly in normalised form
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
5b4bbab9be
include GB CodePoint data into location_postcode table
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
413c69ddc9
improve calculation of postcode for interpolations
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
53f8459e97
move postcode indexing to end of setup
...
The search_name tables are needed for finding the parent,
so the rest of the database must be indexed.
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
3714b7ea7d
take postcode into account for other searches
...
Existence of postcode is still optional but if a matching
result is found, then non-matching ones will be discarded.
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
0ecb920866
immediately drop searches where requested country code does not match
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
563099f7fa
take address part into account in postcode search
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
ce76a25101
merging back postcodes is no longer necessary
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
57dc0304b5
add search for postcode
...
Implements the 'postcode' operator.
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
872e73314e
move postcodes into special operation for Searches
...
Introduces postcode field in searches and sorts out any marked
postcodes.
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
727bd73d0b
fix typo
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
a2a1901b09
add postcodes as special items in word table
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
43869b9938
make sure postcode gets recomputed on update
2017-08-19 19:37:05 +02:00
Sarah Hoffmann
9a86c0cebc
use only computed postcode when getting address
...
Postcodes from address parts are now ignored as they have
been already taken into account when computing the postcode.
2017-08-19 19:37:05 +02:00