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
050b0a2ced
remove street and addr_place columns in placex
...
The information is onyl needed for parenting,
so no need to store it permanently.
2017-04-08 19:58:10 +02:00
Sarah Hoffmann
c8e79397f5
introduce address column for place tables
...
The column is a hstore containing the full OSM tag with key and
value.
2017-04-08 18:58:26 +02:00
Sarah Hoffmann
09f1661638
move moreURL computation into Geocode and include all params
...
Fixes #678 .
2017-03-23 00:16:58 +01:00
Sarah Hoffmann
e841422b1f
remove unused code
2017-03-22 23:02:19 +01:00
Marc Tobias Metten
1e3bf9729e
for search,details in format=HTML return geometry in geojson, not wkt. No longer need leaflet-omnivore plugin
2017-03-19 17:31:00 +01:00
Sarah Hoffmann
57b35654e7
fix style
2017-03-17 22:36:22 +01:00
Sarah Hoffmann
20a4cab57e
add tests for nearpoint sql functions
2017-03-16 22:12:20 +01:00
Sarah Hoffmann
ab3b556144
use NearPoint class in Search array
2017-03-16 22:04:30 +01:00
Sarah Hoffmann
41fce277cd
make NearPoint its own class
2017-03-15 23:47:35 +01:00
marc tobias
a52455f160
github.com/twain47 => github.com/openstreetmap
2017-03-12 13:06:25 +01:00
Sarah Hoffmann
450a12c6be
include housenumbers and postcodes when rechecking for exact matches
2017-02-28 21:40:05 +01:00
Ludovic Delauné
2c3317f582
extra headers for compatibility on IE7
2017-02-28 17:08:34 +01:00
Sarah Hoffmann
c48fb88e6b
move interpolaton computation into indexing step
...
The interpolaton computation needs information from the osm2pgsql
slim tables which may not be available when the data is inserted.
Insertion now only adds a line with basic address information to
location_property_osmline. The line is then split during the
indexing, leading to more lines (which are complete in that case)
being inserted.
Fixes #598 .
2017-02-26 16:46:41 +01:00
Sarah Hoffmann
a84a7a70f3
reverse: choose interpolation only when further than point
...
The ST_DWithin check also includes objects that are the same distance.
Another attempt at #545 .
2017-02-05 23:02:21 +01:00
Sarah Hoffmann
dcab7a19e5
reverse: disable interpolation when going up the address hierarchy
...
Fixes #621 .
2017-02-05 13:08:51 +01:00
Sarah Hoffmann
b8db8301df
reverse: reduce search radius for interpolations
...
Interpolations should have the same maximum search radius as
address points. Change search strategy and only search for
interpolations either before decreasing the maxRank to road
or when a POI was found and we need to check that there isn't
an interpolation that is closer.
2017-01-09 20:51:16 +01:00
Marc Tobias Metten
adb6ea546f
sMoreURL now includes countrycodes values
2016-12-22 02:06:08 +01:00
marc tobias
b27926fd4d
fix PHP warnings when reverse search was called without parameters
...
... or empty results
2016-11-17 22:55:05 +01:00
Sarah Hoffmann
cfb0f3f94c
Merge pull request #548 from lonvia/query-ckeck-utf8
...
check if query is valid unicode string
2016-11-02 19:21:29 +01:00
Sarah Hoffmann
032f24bfef
Merge branch 'ui-easy-switch-coords' of https://github.com/mtmail/Nominatim
2016-11-01 23:49:02 +01:00
marc tobias
d93209ee48
Tiger: set osmtype=way and correct osm_id
2016-11-01 23:34:29 +01:00
marc tobias
eb79e655e6
cleanup of SQL for readability. No logic change
2016-11-01 23:33:47 +01:00
marc tobias
4f3074e538
cleanup of SQL for readability. No logic change
2016-11-01 23:33:47 +01:00
marc tobias
8312e8f539
UI: keep map position when switch to reverse. Easy switching of lat,lon to lon,lat
2016-10-30 17:45:45 +01: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
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
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
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
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
Marc Tobias Metten
6238ae6032
add namespaces, method visibility according to PSR2 standard
2016-09-16 02:27:36 +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
775fdeb8e4
UI: viewbox parameter was set in wrong parameter order
2016-09-13 14:41:56 +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
Marc Tobias Metten
87b6810eba
HTML map: new button -show map bounds- in top right corner
2016-08-24 04:21:28 +02:00