Commit Graph

1214 Commits

Author SHA1 Message Date
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
marc tobias
e49ed1bb13 make apt-get noninteractive. Also fixes the grub error state
grub complains about disc unique identifier having changed
2016-09-10 23:29:59 +02:00
marc tobias
3887423381 fix array-related errors according to PSR2 coding style guide 2016-09-10 21:10:52 +02:00
marc tobias
f05ea577f4 bracket spacing for if/else/for/foreach/while/switch according to PSR2 standard 2016-09-08 02:16:22 +01:00
Sarah Hoffmann
effd8e12af Merge branch 'delete-us-postcode-without-name' of https://github.com/mtmail/Nominatim 2016-09-05 23:09:32 +02:00
Sarah Hoffmann
89c157a6c1 adapt coding style for new spaces-only policy 2016-09-05 22:13:08 +02:00
Marc Tobias Metten
832547f192 tabs-to-spaces 2016-09-04 03:19:48 +02:00
Marc Tobias Metten
36fdfd92ad one US postcode has no name. Unable to find secondary source what it would have been 2016-09-04 02:15:51 +02:00