Commit Graph

961 Commits

Author SHA1 Message Date
Marc Tobias Metten
87b6810eba HTML map: new button -show map bounds- in top right corner 2016-08-24 04:21:28 +02:00
Marc Tobias Metten
797c2d1e74 Merge remote-tracking branch 'upstream/master' into move-mouse-position-info-on-map 2016-08-24 00:03:40 +02:00
Sarah Hoffmann
d7c469d94e Merge pull request #504 from lonvia/parameter-parser-class
factor out parameter parsing into its own class
2016-08-23 21:57:06 +02:00
Sarah Hoffmann
3b7baca46c Merge pull request #506 from mtmail/primary-vagrant-vm
specify ubuntu as primary Vagrant VM
2016-08-22 09:41:46 +02:00
marc tobias
0957bd27c6 specify ubuntu as primary Vagrant VM 2016-08-22 05:47:26 +02:00
Sarah Hoffmann
5464dec057 factor out parameter parsing into its own class
Allows to use the parsing functions in website/search.php and
utils/query.php as well.
2016-08-20 13:43:50 +02:00
Sarah Hoffmann
feb458f8dd update tests for newer planet 2016-08-19 23:57:23 +02:00
Sarah Hoffmann
9c1e0c49bf docs: give recomendations about flatnode file size
closes #501
2016-08-10 22:02:10 +02:00
Sarah Hoffmann
36f2afea8a mark checkpoint_segments parameter as deprecated
Postgresql 9.5 has checkpoint_segments removed and fails to start
if the options is given. Adds a comment to that effect.

Fixes #494.
2016-08-04 22:17:05 +02:00
Sarah Hoffmann
5c187e131a Merge pull request #499 from mtmail/travis-ci
Travis ci setup - tests pass
2016-08-03 08:35:32 +02:00
Marc Tobias Metten
cb68a2cdd2 Merge remote-tracking branch 'upstream/master' into travis-ci 2016-08-03 01:10:30 +02:00
Marc Tobias Metten
3499ed7b82 travis-ci: enable river tests again, numpy package was missing 2016-08-03 00:57:30 +02:00
Marc Tobias Metten
9ff24b9107 travis-ci: enable river tests again, numpy package was missing 2016-08-03 00:54:49 +02:00
Sarah Hoffmann
ee7a6e8f92 update paths in vagrant docs 2016-08-02 22:55:13 +02:00
Sarah Hoffmann
88d623b631 Merge pull request #497 from lonvia/forbid-execution-from-sourcedir
fail on execution of util scripts from source directory
2016-08-02 22:42:20 +02:00
mtmail
2a97ce6aed Merge pull request #476 from mtmail/travis-ci
travis-ci setup
2016-08-01 02:03:45 +02:00
Marc Tobias Metten
bb403e2e58 HTML map: new button -show map bounds- 2016-08-01 01:34:03 +02:00
Sarah Hoffmann
496d6bf168 fail on execution of util scripts from source directory
Utils scripts must be run from the build directory to make sure
we get the right paths. Rename the settings file in source and
replace the original one with an error, so that scripts
fail with an understandable error message when run from the
source directory.
2016-07-31 22:55:38 +02:00
Marc Tobias Metten
b00169e634 travis: exclude poldi, waterway tests 2016-07-31 02:33:47 +02:00
Marc Tobias Metten
9be58ffc7c travis: exclude poldi, waterway tests 2016-07-31 02:18:27 +02:00
Marc Tobias Metten
1fb847a5ad travis: exclude poldi, waterway tests 2016-07-31 02:17:28 +02:00
Marc Tobias Metten
8a823d1361 Merge remote-tracking branch 'upstream/master' into travis-ci 2016-07-30 21:53:27 +02:00
Sarah Hoffmann
ab30a69ad9 Merge pull request #490 from lonvia/streamline-class-interfaces
Code cleanup for geocode classes
2016-07-27 20:56:10 +02:00
Sarah Hoffmann
0a95bdc5f5 remove unused functions in Geocode 2016-07-26 23:10:50 +02:00
Sarah Hoffmann
d594bb238b cleanup interface of PlaceLookup
Move lookup parameters (place id, type, frac etc.) from members
to parameters for lookup().
2016-07-26 20:54:14 +02:00
Sarah Hoffmann
0d179b8c97 remove unnecessary local variable 2016-07-26 20:54:14 +02:00
Sarah Hoffmann
1b33999f10 refactor ReverseGeocode
- remove unused functions and members
- move coordinates from being members to being parameters of lookup()
2016-07-26 20:54:14 +02:00
Sarah Hoffmann
3f06d9d3ba fix typos and grammar in installation instructions 2016-07-26 20:38:44 +02:00
Sarah Hoffmann
7da9178b83 Merge pull request #487 from lonvia/unify-reverse
Remove duplicate reverse geocoding code
2016-07-25 22:15:28 +02:00
Sarah Hoffmann
a766240c06 remove duplicate reverse geocoding code
Geocode now uses ReverseGeocode directly. Note that it currently
cannot support any interpolations, neither OSM nor Tiger. But
neither did the previous version.
2016-07-24 23:58:39 +02:00
Sarah Hoffmann
a827367a2f adapt Tiger reverse test to new output format 2016-07-24 23:58:21 +02:00
Sarah Hoffmann
4f75f4cb6e remove IP blocking and rate-limiting code
Closes #472.
2016-07-18 21:33:09 +02:00
Sarah Hoffmann
975c30afba Merge pull request #486 from IrlJidel/patch-1
pgsqlRunPartitionScript needs global $aCMDResult
2016-07-16 10:09:09 +02:00
IrlJidel
ca92442601 pgsqlRunPartitionScript needs global $aCMDResult
function pgsqlRunPartitionScript  was missing global $aCMDResult

setup was failing with

...
PHP Notice:  Undefined variable: aCMDResult in /home/roles/nominatim/app/Nominatim/build/utils/setup.php on line 768
NOTICE:  type "nearplace" does not exist, skipping
..
ERROR:  relation "location_area_large_0" already exists
ERROR: pgsql returned with error code (3)
pgsql returned with error code (3)
Command exited with non-zero status 255
2016-07-14 19:49:58 +01:00
Marc Tobias Metten
77ca079688 travis-ci setup, some tests fails 2016-06-21 23:42:36 +02:00
Sarah Hoffmann
665de339e5 allow coordinates in query only with name or classtype
Coordinates with country or housenumber only do not make much
sense. Currently these combination result in queries that
require a sequential scan of search_name and normally time
out before yielding any results.

fixes #462
2016-06-15 22:41:48 +02:00
Sarah Hoffmann
84495489d9 fix links to documentation in README 2016-06-14 23:11:14 +02:00
Sarah Hoffmann
8eb0e09ce3 more instructions for Tiger imports 2016-06-14 21:44:18 +02:00
Sarah Hoffmann
2ab43f6367 reverse do not downgrade tiger and interpolation results
Also fix the type that is returned for Tiger data.

Fixes #470
2016-06-14 21:38:03 +02:00
Sarah Hoffmann
b14bc75dc4 Merge pull request #469 from lonvia/refactor-php
Some refactoring of website php
2016-06-13 20:13:38 +02:00
Sarah Hoffmann
860acbf6af add instructions to enable use of Tiger data 2016-06-13 20:07:57 +02:00
Sarah Hoffmann
10c5d7f6f6 fix more syntax errors in error functions 2016-06-12 23:25:47 +02:00
Sarah Hoffmann
e842d8793c allow parameters to be empty
Consider empty parameters as unset and use the default. Simplifies
use in forms.
2016-06-12 23:22:14 +02:00
Sarah Hoffmann
348a3082c9 fix syntax errors and update tests
Some of the tests with bad parameters now return a HTTP 400.
2016-06-12 22:51:13 +02:00
Sarah Hoffmann
033b9590bd use chksql everywhere in lib/
Replaces manual PEAR error checks and adds the chksql wrapper
where the error checks were still missing.
2016-06-12 14:58:05 +02:00
Sarah Hoffmann
95961d098d introduce chksql function for website code and move other fail functions
The default error screen now reports the full SQL even when not
in debug mode as this message is often more helpful than our
custom error message.
2016-06-12 14:34:57 +02:00
Sarah Hoffmann
7a50d2f996 factor out link formatting function and osm type translation 2016-06-12 12:39:09 +02:00
Sarah Hoffmann
6fef943e49 update links to OSM objects
/browse/ is no longer necesary in the URL
2016-06-12 09:26:58 +02:00
Sarah Hoffmann
76b9eb8098 remove now unused bAsPoints in reverse API 2016-06-11 23:27:21 +02:00
Sarah Hoffmann
d45524cbfb introduce accessor function for URL parameter
These functions take care of type conversion and check that
the parameters contain legal values. The API now returns a
Bad Request error if the format is wrong.
2016-06-11 23:07:06 +02:00