Sarah Hoffmann
d88c484fa1
remove PHP version check
...
5.4 is the minimum supported version now.
2017-06-01 20:10:10 +02:00
big-o
bdd90e890b
Parameter to enable JSON pretty-printing
2017-06-01 20:10:10 +02:00
Sarah Hoffmann
bd4b1b2d08
switch from osmosis to pyosmium for updates
...
Pyosmium comes with convenient functions for finding the
right state and does not require external files for
rembering the state. Updates can now conveniently
set up by simply running ./utils/update.php --init-updates
and state is kept directly in the import_status table.
This change requires an update in the database schema.
Run the following to update:
ALTER TABLE import_status ADD COLUMN sequence_id integer;
ALTER TABLE import_status ADD COLUMN indexed boolean;
ALTER TABLE import_osmosis_log ADD COLUMN batchseq integer;
2017-05-25 16:26:09 +02:00
Sarah Hoffmann
41fce277cd
make NearPoint its own class
2017-03-15 23:47:35 +01:00
Sarah Hoffmann
bb1c3f23ab
reduce maximum line length to 199 for all php files
2016-10-14 00:01:16 +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
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
2a784fa3d4
fix function declaration errors according to PSR2 coding style guide
2016-09-11 05:22:51 +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
Marc Tobias Metten
832547f192
tabs-to-spaces
2016-09-04 03:19:48 +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
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
4f75f4cb6e
remove IP blocking and rate-limiting code
...
Closes #472 .
2016-07-18 21:33:09 +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
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
Sarah Hoffmann
af06d31d21
remove duplicate CORS header
...
fixes #427
2016-04-12 23:04:38 +02:00
Sarah Hoffmann
6f442b6617
remove unused functions in php library
2016-03-28 22:55:21 +02:00
Sarah Hoffmann
83cca343c3
Fix fixing of coding style
2016-03-28 22:04:08 +02:00
Markus Gail
7dd0a63b68
Fix coding style.
2016-03-23 09:34:36 +01:00
Markus Gail
e94b667e16
adapt to code style conventions
2016-03-21 14:15:22 +01:00
Markus Gail
291fdd1894
Tested Version of new Tiger line storage format.
2016-03-21 14:14:01 +01:00
Markus Gail
46cef36184
Implement geocoding and reverse geocoding with tiger interpolation lines instead of points.
2016-03-21 14:14:01 +01:00
Marc Tobias Metten
991bd0004a
Reverse geocode include geometry
2016-03-04 20:29:09 +01:00
Marc Tobias Metten
7f5fe8c877
moved bIncludePolygonAsPoints related logic into lib.php, added tests
2016-02-28 17:06:52 +01:00
Marc Tobias Metten
78a29b5a87
spaces-to-tabs for all *.php files
2016-02-27 00:02:20 +01:00
PhiRub
5cc1946dfc
Fixed Lat/Long Example
2015-09-03 15:59:40 -05:00
Sarah Hoffmann
86ca377b1a
add extratags and name details to PlaceLookup (reverse)
2015-08-09 15:14:59 +02:00
Sarah Hoffmann
79f1107391
increase relevance of class/type importance
...
fixes #273
2015-05-04 21:14:34 +02:00
Sarah Hoffmann
987b6a70c9
use unescaped unicode in json where supported by PHP
2015-03-29 13:02:21 +02:00
Sarah Hoffmann
7769b0a823
junctions should not appear as roads in addresses
...
fixes #228
2015-01-30 22:25:08 +01:00
Sarah Hoffmann
fbc5ba13f8
show class instead of yes in html search output
2015-01-27 22:22:26 +01:00
Sarah Hoffmann
e16fcf879d
fully evaluate reverse order of queries
...
Factors out computation of search group and calls the code once
for forward evaluation and wants with reversed word order.
2015-01-21 21:40:38 +01:00
Sarah Hoffmann
d6e7bbaad9
add underscore back to derelict canal
...
fixes #212 (again)
2014-12-20 14:55:08 +01:00
Sarah Hoffmann
1217083146
remove duplicate derelict canal
...
fixes #212
2014-12-20 00:02:26 +01:00
Marc Tobias Metten
d6f298f033
move looksLikeLatLonPair into lib.php, basic PHP test suite using phpunit
2014-09-23 22:53:20 +02:00
Sarah Hoffmann
0b545ba093
experimental ordering of searches within same rank
...
giving preference to those without operator and housenumber
2014-09-03 20:46:41 +02:00
Brian Quinion
fcc731dcd4
Add aeroway as alias for airport
2014-08-22 14:11:01 +01:00
Sarah Hoffmann
be1d7f38ca
return with non-zero exit code on error
2014-05-18 22:58:58 +02:00
Sarah Hoffmann
bafd92093b
prefer place tag for address details
2014-04-30 23:31:28 +02:00
Sarah Hoffmann
346da9bc0d
handle multiple results from gb_postcode table
2014-04-10 21:50:44 +02:00
Sarah Hoffmann
bc27cb2bd8
introduce util function to query db from command line
2014-03-03 20:02:24 +01:00
Sarah Hoffmann
b25ecf13db
check correct variable for SQL error
2014-02-01 15:51:40 +01:00
Brian Quinion
a974d25092
fix structured and batch mode. Add constant to disable batch mode by default
2013-09-12 16:16:08 +01:00
Brian Quinion
eb793ae26e
Fix for regressions: broken bounded search, error on country codes
2013-09-06 09:47:46 +01:00
Brian Quinion
aa8c6e5f13
Try alternative orderings of structured queries that include postal codes
2013-06-11 14:56:50 +01:00
Sarah Hoffmann
9cec989882
remove suggestion code, no longer works
2013-05-08 20:23:47 +02:00
Sarah Hoffmann
b4c87a09a1
restrict depth of word set calculation
2013-04-20 00:18:08 +02:00
Sarah Hoffmann
9e0a92a508
allow to disable default language
...
If CONST_Default_Language is set to false, the fallback will be to
name tags without a language suffix. Make this the default.
2013-04-12 23:12:03 +02:00