Sarah Hoffmann
7fd40cb0e6
Merge pull request #1238 from lonvia/simplify-version-check
...
Simplify parsing of postgres and postgis versions
2018-11-20 23:07:55 +01:00
Sarah Hoffmann
b6b1c23575
fix phpcs offences
2018-11-20 23:05:56 +01:00
Sarah Hoffmann
409ded385f
simplify connection handling in setup script
...
- factor out runWithEnv
- require explicit connect() call to avoid rechecking for oDB
(more for readability than for speed)
- clean DSNInfo of empty strings and simplify check for entries
2018-11-20 22:51:37 +01:00
Sarah Hoffmann
9cf85f90fb
Simplify parsing of postgres and postgis versions
...
Switch to functions server_version_num and postgis_lib_version
which both only return the version string, so that no elaborate
string parsing is necessary anymore. The version string could
become especially cumbersome in pre-release versions.
2018-11-18 17:27:20 +01:00
Sarah Hoffmann
85f32d6c0f
Keep matches without house number
...
Now that we have result ranking, we can keep the street results
for housenumber searches and reuse them in the next group round
if required. Also fixes an issue where postcode and housenumber
are in the query and one of them is wrong.
Fixes #1200 .
2018-11-17 00:35:38 +01:00
Sarah Hoffmann
9908c93d4c
Add result ranking for missing housenumber and postcode
...
Fixes #988 .
2018-11-17 00:00:01 +01:00
Sarah Hoffmann
388c7f706d
Merge pull request #1233 from mtmail/better-gbpostcode-setup-warning
...
Improved warning message when looking for optional GB postcode file
2018-11-15 23:28:04 +01:00
Sarah Hoffmann
7f0a0ce5e5
make HTML error message less technical
2018-11-15 21:19:31 +01:00
Sarah Hoffmann
2a39bc6e68
Merge branch 'set-exception-handler-by-request-format' of https://github.com/mtmail/Nominatim into mtmail-set-exception-handler-by-request-format
2018-11-15 20:57:20 +01:00
marc tobias
07c47eed54
Improved warning message when looking for optional GB postcode file
2018-11-09 10:06:17 +00:00
Sarah Hoffmann
c5109d39d0
increase limit when searching for street w/ house number
...
Increase the chance that the correct street is found.
2018-10-20 17:26:45 +02:00
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