marc tobias
e4a51e460e
set exception handler by request format, not always HTML
2018-10-03 22:58:20 +02:00
Sarah Hoffmann
3afd12f977
simplify constructor of SetupFunctions
...
Also cleans up spacing.
2018-10-02 23:42:33 +02:00
Sarah Hoffmann
f45b3fa3f2
Merge branch 'updatePHP' of https://github.com/ThomasBarris/Nominatim into ThomasBarris-updatePHP
2018-10-02 22:46:53 +02:00
marc tobias
e2a7a795d4
fix AddressDetails->getAddressDetails, add tests
2018-09-20 02:16:01 +02:00
Sarah Hoffmann
119ffbab40
address tokens get a double search rank also as full terms
...
Fixes #1170 .
2018-09-18 21:54:08 +02:00
ThomasBarris
e92b54b869
Merge branch 'updatePHP' of https://github.com/ThomasBarris/Nominatim into updatePHP
2018-09-18 21:29:24 +02:00
ThomasBarris
0273e128f4
change variables for class SetupClass.php instantiation
2018-09-18 21:28:05 +02:00
ThomasBarris
a948050015
typo
2018-09-18 09:17:54 +02:00
ThomasBarris
a0dbeabed1
move setupclass, move command line array, remove args from update array
2018-09-17 10:28:00 +02:00
ThomasBarris
9e35e5c2b0
move checkModilePresence to class, delete own debug echo
2018-09-08 09:26:23 +02:00
ThomasBarris
d10f63b666
format change revert, removed bogus CL options, SetupClass to a new dir
2018-09-05 22:01:03 +02:00
ThomasBarris
aa6ac5a751
more format changes for Mr. Travis
2018-08-31 22:01:53 +02:00
ThomasBarris
a3b4f80c99
small fixes on setup.php and a bring update.php to work
2018-08-31 21:31:38 +02:00
ThomasBarris
b2f3cfde0b
splitted createTables and changed formatting to please Travis
2018-08-29 22:54:28 +02:00
ThomasBarris
c036480ce2
first draft of setupClass
2018-08-29 21:31:19 +02:00
Sarah Hoffmann
e8982068b6
fix quotes to make phpcs happy
2018-08-24 21:39:20 +02:00
ThomasBarris
14aca11dcd
moving functions from setup.php to a lib file in lib/setup_functions.php and change a passthru in setup.php by calling the function with this new lib
2018-08-24 16:15:39 +02:00
Sarah Hoffmann
1ee636461c
Mute notices from postgresql during setup
...
They are mostly warnings about tables that do not exists. This
is intentional and would only confuse the casual user.
2018-08-23 21:14:34 +02:00
Sarah Hoffmann
14e708f366
ignore linked country nodes for reverse geocoding
...
Fixes #1145 .
2018-08-22 23:33:11 +02:00
Sarah Hoffmann
84cfe5db53
fix warning in keyword output of details
2018-08-22 22:35:46 +02:00
Sarah Hoffmann
26bd8304c6
fix formatting
2018-08-22 22:25:55 +02:00
marc tobias
e47646ddba
in /details JSON output add check if place (type) has an icon set
2018-08-22 13:34:34 +02:00
Sarah Hoffmann
88374c2522
improve test coverage for reverse and debug output
2018-08-20 23:05:49 +02:00
Sarah Hoffmann
3fcfab9772
clean up reverse code
...
Removes unused variables, improves naming of internal functions
and makes structure of SQL calls a bit cleaner.
2018-08-20 23:04:33 +02:00
Sarah Hoffmann
de8888ec58
directly do country search for reverse zoom < 5
...
Fixes #1145 .
2018-08-20 22:09:08 +02:00
Sarah Hoffmann
ff4b1758e1
reduce search radius when searching for nodes within country
2018-08-19 18:08:05 +02:00
Sarah Hoffmann
0617768ee2
Fix partial word computation
...
Partial word tokens have a space at the beginning of the
token not the word.
2018-08-13 21:22:45 +02:00
Sarah Hoffmann
62b60c70e6
reverse on street level should compute distance to object
...
The centroid of a building may be far away even when still inside
the building.
Fixes #1136 .
2018-08-13 21:17:49 +02:00
Sarah Hoffmann
0394f32438
fix large viewbox computation
...
Fixes #1137 .
2018-08-13 20:52:49 +02:00
Sarah Hoffmann
60cea6c8bf
fixup use of indexes for latest reverse changes
2018-08-08 22:04:39 +02:00
Sarah Hoffmann
2e9cebf025
define types for null returns in PlaceLookup
...
Fixes #1127 .
2018-08-05 15:47:55 +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
7f10264fb6
Merge pull request #1095 from estadtherr/remote_postgres_pr
...
Enable Postgres to run on a different host than the web server
2018-08-02 23:16:07 +02:00
Sarah Hoffmann
7e0fdf5928
fall back to debugInfo() for printing objects
...
Fixes #1122 .
2018-08-02 00:06:02 +02:00
Eric Stadtherr
bfea79f1e4
address phpcs issue (strange it didn't appear in earlier runs)
2018-07-30 11:20:43 -06:00
Sarah Hoffmann
12db7a9af2
Merge pull request #1113 from mtmail/remove-empty-icon-configuration
...
ClassTypes: treat empty string for -icon-same as null
2018-07-23 20:37:31 +02:00
marc tobias
0981a6403d
PHP code style: use long array syntax
2018-07-23 17:24:31 +02:00
marc tobias
37bd4dfd83
ClassTypes: treat empty string for -icon-same as null
2018-07-23 17:10:27 +02:00
Eric Stadtherr
b8b87716db
adapt PR changes to use new variable naming convention
2018-07-21 17:09:59 -06:00
Eric Stadtherr
1108bf7d86
PR review changes
2018-07-21 12:09:47 -06: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
Sarah Hoffmann
5a772a5770
Don't add viewbox weight when no viewbox is given
...
Fixes #1068 .
2018-07-20 23:29:36 +02:00
Sarah Hoffmann
3433ec306e
fix operator type assignment
...
Fixes #1084 .
2018-07-20 22:27:27 +02:00
Marc Tobias Metten
0892eab1d3
tests for Nominatim::TokenList
2018-07-19 14:19:50 +02:00
Sarah Hoffmann
d68996127d
fix bad namespace for Operator class
2018-07-17 22:38:40 +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
25baaf530d
unify address details lookup
...
Introduces new AddressDetails class which is responsible
for address lookups. Saves always the complete result
and then allows filtering throught the different access
function. Remove special handling in Geocode() and use
there the lookup throught PlaceLookup() as well.
2018-07-10 23:54:35 +02:00
Sarah Hoffmann
320d488627
move ClassTypes into own namespace
...
Also adds some convenience functions for lookups.
2018-07-09 23:20:46 +02:00
Sarah Hoffmann
80a6751c51
make phpcs happy
2018-07-06 22:06:05 +02:00