Commit Graph

1121 Commits

Author SHA1 Message Date
Sarah Hoffmann
a61f852cd2 fix parameter list for renamed postgis functions
fixes #560
2016-10-24 20:39:49 +02:00
Sarah Hoffmann
26ba5bf0be Merge pull request #556 from lonvia/drop-php-53-support
Drop support for PHP < 5.4
2016-10-20 22:00:18 +02:00
Sarah Hoffmann
702f9477ab Merge pull request #557 from mtmail/test-failure-after-c0b4411
PHP unit test failed after change in c0b4411
2016-10-18 23:06:29 +02:00
Marc Tobias Metten
179542f938 PHP unit test failed after change in c0b4411 2016-10-18 22:54:01 +02:00
Sarah Hoffmann
b77e2503f5 drop support for PHP < 5.4 2016-10-17 22:28:39 +02:00
Sarah Hoffmann
1542a006cb Merge pull request #550 from lonvia/decrease-line-length
Reduce maximum line length to 199
2016-10-16 09:55:13 +02:00
Sarah Hoffmann
bb1c3f23ab reduce maximum line length to 199 for all php files 2016-10-14 00:01:16 +02:00
Sarah Hoffmann
8650e0fedd slightly relax viewbox parameter check
Allow out of bounds parameters as long as the resulting box
covers some legal coodinates.
2016-10-13 08:03:28 +02:00
Sarah Hoffmann
abac5d8ebd split long lines in Geocode.php 2016-10-13 00:27:17 +02:00
Sarah Hoffmann
aa7c8b6b5b fix viewbox parameters in tests 2016-10-13 00:26:04 +02:00
Sarah Hoffmann
e69115fd8f remove debug output 2016-10-12 22:27:46 +02:00
Sarah Hoffmann
7b1f35426d check if query is valid unicode string 2016-10-12 22:25:04 +02:00
Sarah Hoffmann
6757e1b865 properly check format of viewbox parameter 2016-10-12 22:13:07 +02:00
Sarah Hoffmann
c72e6a93dc fix typo in error message 2016-10-12 20:21:12 +02:00
Sarah Hoffmann
c0b4411337 reduce search depth when splitting word sets
Too many out-of-memory conditions with the current algorithm.
2016-10-12 20:09:20 +02:00
Sarah Hoffmann
0e613a362e fix variable name typos 2016-10-10 22:22:35 +02:00
Sarah Hoffmann
4123a3fd6b note phpcs command in contribution readme 2016-10-09 23:08:20 +02:00
Sarah Hoffmann
087522c601 details: check for unknown object and icons 2016-10-09 22:14:19 +02:00
Sarah Hoffmann
fb51d51582 fix syntax error for route boxes 2016-10-09 21:41:23 +02:00
Sarah Hoffmann
f5641037cf avoid passing temporary array by reference
PHP7 complains: Only variables should be passed by reference.
2016-10-09 21:14:59 +02:00
Sarah Hoffmann
39580057fc better error message for missing osm2pgsql 2016-10-09 21:04:53 +02:00
Sarah Hoffmann
a855ffe58e replace deprecated postgis functions
ST_Line_Locate_Point and ST_Distance_Spheroid have changed
spelling in newer version and throw a deprecation warning.
2016-10-09 20:09:59 +02:00
Sarah Hoffmann
42d473968f check for correct array for country codes
fixes trac ticket 5427
2016-10-04 20:32:22 +02:00
Rémi BOURGAREL
8a2e401025 Change on get_addressdata check for matching the condition in placex_update
On placex_update we stop the indexing to the first parent if the rank_search is above 27. We should do the same check in get_adressdata, because place with a rank_address != 30 and a search_rank > 27 will have only 1 parent.
https://github.com/twain47/Nominatim/issues/534
2016-10-04 15:49:31 +02:00
Sarah Hoffmann
a912b3448f docs: fix link 2016-10-02 17:33:49 +02:00
Sarah Hoffmann
8b896f37f3 fill interpolation array for reverse lookups via search endpoint
Fixes #540
2016-10-01 13:03:31 +02:00
Sarah Hoffmann
6bf90eb22f fix namespace use 2016-09-30 22:43:11 +02:00
Sarah Hoffmann
421174ce0c Merge pull request #538 from lonvia/update-default-languages
Update default languages and move country search term creation to setup.php
2016-09-30 20:01:20 +02:00
Sarah Hoffmann
1982978f74 move country search term creation into setup script
Search results can become odd without the country search
terms, so make their inclusion a mandatory part of the
setup.

Also adds a new configuration variable to restrict the
languages taken into account by Nominatim.
2016-09-28 23:30:44 +02:00
Sarah Hoffmann
6fd2887543 update per-country language defaults
Added missing defaults for all mono-lingual countries as per
http://wiki.openstreetmap.org/wiki/Nominatim/Country_Codes
2016-09-28 22:04:29 +02:00
Sarah Hoffmann
44ee8d9ce3 Merge pull request #533 from mtmail/PSR2-php-tests
fix PSR2 warnings in php tests
2016-09-16 21:57:38 +02:00
Sarah Hoffmann
bf77b444bf Merge pull request #532 from mtmail/PSR2-namespaces
add namespaces, method visibility according to PSR2 standard
2016-09-16 21:55:44 +02:00
Marc Tobias Metten
a7da0c90bf fix PSR2 warnings in php tests 2016-09-16 02:45:42 +02:00
Marc Tobias Metten
6238ae6032 add namespaces, method visibility according to PSR2 standard 2016-09-16 02:27:36 +02:00
Sarah Hoffmann
d437a14f25 vagrant: use old configs when updating
Otherwise we may overwrite vagrant-specific settings like
nopassword for sudo.
2016-09-15 23:08:54 +02:00
Sarah Hoffmann
e1be3d9f48 Merge branch 'PSR2-fixes-for-settings' of https://github.com/mtmail/Nominatim into mtmail-misc-psr-fixes 2016-09-15 21:53:12 +02:00
Sarah Hoffmann
e686ce8680 Merge branch 'PSR2-fixes-for-wikidata' of https://github.com/mtmail/Nominatim into mtmail-misc-psr-fixes 2016-09-15 21:51:48 +02:00
Marc Tobias Metten
93c26a0e65 half-reverting 51155b63, We dont need two of three break statements after all 2016-09-15 19:36:32 +02:00
Marc Tobias Metten
02550cc4dc PSR2 fixes for /settings 2016-09-14 03:50:18 +02:00
Marc Tobias Metten
b243aa84e2 PSR2 fixes for /wikidata and /tests-php directories 2016-09-14 03:39:17 +02:00
Marc Tobias Metten
cfed4bc204 PHP linter looks for phpcs.xml by default. Also removed a couple of exceptions that didnt cause warnings 2016-09-14 03:23:43 +02:00
Marc Tobias Metten
4a321487f3 fix indentation and misc errors according to PSR2 coding style guide 2016-09-14 03:16:46 +02:00
Marc Tobias Metten
74c06ef877 PHP linter looks for phpcs.xml by default. Also removed a couple of exceptions that didnt cause warnings 2016-09-14 03:15:46 +02:00
Marc Tobias Metten
51155b639b case statement need : instead of ;. Added more breaks 2016-09-14 03:00:57 +02:00
Marc Tobias Metten
775fdeb8e4 UI: viewbox parameter was set in wrong parameter order 2016-09-13 14:41:56 +02:00
Sarah Hoffmann
eb0b3bfa4c Merge pull request #524 from mtmail/PSR2-function-declarations
fix function declaration errors according to PSR2 coding style guide
2016-09-11 12:07:35 +02:00
Marc Tobias Metten
2a784fa3d4 fix function declaration errors according to PSR2 coding style guide 2016-09-11 05:22:51 +02:00
Marc Tobias Metten
5c40100b57 code style definitions: we no longer use tabs 2016-09-11 05:21:51 +02:00
Marc Tobias Metten
ae5cc28a1a add PHP code-sniffer to installation instructions (marked optional) 2016-09-11 05:21:15 +02:00
Sarah Hoffmann
cf39e07dba Merge pull request #522 from mtmail/PSR2-arrays
fix array-related errors according to PSR2 coding style guide
2016-09-10 23:35:25 +02:00