Sarah Hoffmann
3d51c2a4e7
show by default all entries from the broken polygon list
...
Fixes #854 .
2017-12-17 17:29:08 +01:00
Marc Tobias Metten
c4e72e6ca9
UI: minimap causes main map not to initialize
2017-10-27 22:15:22 +02:00
Marc Tobias Metten
9f6f3dd75d
UI: minimap causes main map not to initialize
2017-10-27 22:13:47 +02:00
Marc Tobias Metten
6b994cb5ff
UI: minimap causes main map not to initialize
2017-10-27 22:06:48 +02:00
Sarah Hoffmann
6c1977b448
replace double-quoting with single quotes where applicable
2017-10-26 21:40:33 +02:00
Sarah Hoffmann
282c6777ee
use PlaceLookup::loadParamArray in search and lookup
2017-10-23 23:30:53 +02:00
Sarah Hoffmann
9981d74ee1
add loadParamArray function to PlaceLookup and use for reverse
2017-10-23 23:30:53 +02:00
Sarah Hoffmann
914caab43d
make PlaceLookup::lookup() accept multiple results
2017-10-23 23:30:53 +02:00
Sarah Hoffmann
1424e8e29b
use Result class in reverse geocoding
...
Also simplifies the reverse algorithm slightly by no longer
having an additional distance lookup.
2017-10-23 23:30:53 +02:00
marc tobias
2361ca2c71
UI: allow copy&pasting lat,lon into the lat search field
2017-10-21 14:28:28 +02:00
marc tobias
3cee2d185d
UI: allow copy&pasting lat,lon into the lat search field
2017-10-21 14:11:46 +02:00
marc tobias
da4a2b7b6e
UI: scrollwheel, minimap
2017-10-21 13:24:02 +02:00
Sarah Hoffmann
f4a00eba26
enable details view for artificial postcodes
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
16053e81bf
show address tags and postcode in details
2017-08-19 19:37:05 +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
Sarah Hoffmann
026081e131
Merge pull request #676 from mtmail/html-map-position-box-disappeared
...
On /search.php the map-position box disappeared behind the map tiles
2017-03-20 20:19:41 +01:00
marc tobias
8e79ece203
On /search.php the map-position box disappeared behind the map tiles
2017-03-20 15:38:12 +01:00
marc tobias
a23bd80a31
leaflet 1.0 changed the path of the marker icon
2017-03-20 12:27:48 +01:00
Marc Tobias Metten
73c151b3ac
update leaflet CSS file as well. Fixes delayed layer animation
2017-03-19 22:38:23 +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
Marc Tobias Metten
924d3a8d6e
update leaflet.js 0.7.7 => 1.0.3
2017-03-19 15:53:52 +01:00
Marc Tobias Metten
2a07bb8a7f
remove obsolete openlayers theme files
2017-03-19 15:50:00 +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
032f24bfef
Merge branch 'ui-easy-switch-coords' of https://github.com/mtmail/Nominatim
2016-11-01 23:49:02 +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
marc tobias
a9ad69efae
add missing newline in CSS file
2016-10-29 11:25:21 +02:00
marc tobias
0a45dbf5f6
fix drodown menu not overlapping map button
2016-10-29 11:14:30 +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
0e613a362e
fix variable name typos
2016-10-10 22:22:35 +02:00
Sarah Hoffmann
087522c601
details: check for unknown object and icons
2016-10-09 22:14:19 +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
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
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
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
Marc Tobias Metten
bb403e2e58
HTML map: new button -show map bounds-
2016-08-01 01:34:03 +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
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
4f75f4cb6e
remove IP blocking and rate-limiting code
...
Closes #472 .
2016-07-18 21:33:09 +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
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
Sarah Hoffmann
aa9fff9199
polygons.php: print total number of broken polygons
2016-06-11 00:01:24 +02:00
Sarah Hoffmann
1a47376040
remove dead code
2016-06-11 00:01:24 +02:00
Sarah Hoffmann
4e0e0c1797
replace new-style [] expression with old-style array()
...
Also removes some unused code.
fixes #444
2016-05-01 11:22:53 +02:00
marc tobias
9e1421fb6c
UI: the result outline (geojson/polygon) now lets the map handle its clicks
2016-05-01 10:47:13 +02:00
Sarah Hoffmann
a86563cfb1
make tables for external data (Tiger and aux) configurable
...
Introduces two new settings CONST_Use_US_Tiger_Data and
CONST_Use_Aux_Location_data, which are disabled by default.
When false the corresponding tables are ignored in queries
and updates.
Aux and tiger tables are no longer created by default. This
has to be done by the corresponding import scripts. The former
aux table creation can be found in sql/aux_tables.sql for
reference.
2016-04-07 21:47:51 +02:00
Markus Gail
7dd0a63b68
Fix coding style.
2016-03-23 09:34:36 +01:00
Markus Gail
291fdd1894
Tested Version of new Tiger line storage format.
2016-03-21 14:14:01 +01:00
Sarah Hoffmann
6fc32d9645
Merge branch 'cmake-port' into master
...
Conflicts:
CMakeLists.txt
lib/init.php
settings/settings.php
2016-03-16 19:45:18 +01:00
Sarah Hoffmann
50f17666fa
Merge pull request #395 from mtmail/php7-support
...
fix for PHP7, added test setup
2016-03-13 21:38:57 +01:00
Marc Tobias Metten
22ebd1c7a9
second argument of array_merge can be empty
2016-03-13 03:01:19 +01:00
Marc Tobias Metten
df764a3f3b
fix for PHP7, added test setup
2016-03-13 02:06:46 +01:00
Sarah Hoffmann
5ccb499a6f
install executables and call settings.php explicitly
...
Executables (including websites) need to be installed in the
build directory, so that they can find the right settings.php.
settings now defines build and source dir.
2016-03-12 09:40:43 +01:00
Marc Tobias Metten
71b3aa9cca
Reverse geocode include geometry - added bounding box tests
2016-03-09 19:43:03 +01:00
Marc Tobias Metten
991bd0004a
Reverse geocode include geometry
2016-03-04 20:29:09 +01:00
marc tobias
8e2b5d7ce3
query the last updated timestamp only if output format is HTML
2016-03-02 01:22:19 +01:00
Marc Tobias Metten
78a29b5a87
spaces-to-tabs for all *.php files
2016-02-27 00:02:20 +01:00
Sarah Hoffmann
ebdd250fa0
also show line geometries on search page
2016-02-08 23:06:27 +01:00
Sarah Hoffmann
8b491e8544
Merge pull request #361 from mtmail/detail-page-big-table2
...
UI: columns nicer aligned in details table(s)
2016-02-06 12:51:47 +01:00
Sarah Hoffmann
40588482a2
Merge pull request #362 from mtmail/fix-timeout-on-detail-pages
...
fix timeout on detail pages related to distance calculation
2016-02-06 12:50:38 +01:00
marc tobias
a73135aebe
fix timeout on detail pages related to distance calculation
2016-02-06 12:43:12 +01:00
marc tobias
634d04068d
UI: columns nicer aligned in details table(s)
2016-02-06 12:39:51 +01:00
Marc Tobias Metten
21385f5e51
make map tile layer configurable
2016-01-27 19:42:49 +01:00
marc tobias
cd37227a3c
user interface: zoom dropdown for debugging on reverse search page
2016-01-22 11:54:26 +00:00
marc tobias
ef1a7d9073
user interface: reverse search remembers zoom level after map click
2016-01-21 15:26:18 +00:00
marc tobias
8f0199008d
user interface: enable scrollwheel zoom. Disable on touch devices
2016-01-21 14:47:55 +00:00
marc tobias
9f1d3ac272
user interface: less spacing in table, pushing more content above the fold
2016-01-21 13:47:00 +00:00
Sarah Hoffmann
248588fbf3
make headers more compact
2016-01-20 21:14:30 +01:00
Marc Tobias Metten
016815eda2
new reverse HTML page incl leaflet map
2016-01-19 16:15:32 +01:00
Marc Tobias Metten
f2a2c29815
responsive details-error page. Shared header and footer
2016-01-19 12:29:07 +01:00
Marc Tobias Metten
851af3db7f
details.php now also responsive
2016-01-15 17:11:12 +01:00
marc tobias
fc961c14fa
status after hackweekend London
2016-01-15 17:11:12 +01:00
marc tobias
91f3405713
status after hackweekend London
2016-01-15 17:11:12 +01:00
Sarah Hoffmann
c242386ddb
use url with php prefix in more url
...
User may not want to set up URL rewriting for suffixes.
Fixes #241
2015-08-11 23:09:50 +02:00
Sarah Hoffmann
c9d7015f69
make search with reverse plan default
...
The old behaviour with reverse planning for only selected languages
can be reinstated by setting CONST_Search_ReversePlanForAll to
false.
Fixes #293
2015-08-11 22:30:07 +02:00
Sarah Hoffmann
ddb2b3cafb
add namedetails and extratags to lookup call
2015-08-10 21:45:22 +02:00
Sarah Hoffmann
a1f3bfb35a
implement namedetails and extratags parameter for search
2015-08-10 21:42:40 +02:00
Sarah Hoffmann
86ca377b1a
add extratags and name details to PlaceLookup (reverse)
2015-08-09 15:14:59 +02:00
Sarah Hoffmann
9e5c9ca81d
fix HTTP return on status when database is down
2015-08-08 17:50:29 +02:00
Marc Tobias Metten
86e946d369
method /lookup.php: incorporate better PHP variable naming and other feedback in pull request
2015-06-25 04:12:44 +02:00
Marc Tobias Metten
7c8c206818
new method /lookup.php - Reverse search by multiple osm ids
2015-06-16 21:11:21 +02:00
Oleksandr Shulgin
46e64bd933
Check for positive polygon simplification threshold
...
Don't run the simplification function if no threshold was given
(or in case of a negative one). Also process the query string
parameter in case of html out format.
2015-04-29 16:13:39 +02:00
Oleksandr Shulgin
ab47773604
Add polygon simplification
...
New query string parameter polygon_threshold=<0.0..1> is introduced.
The float value of this parameter (defaults to 0) is passed to
ST_SimplifyPreserveTopology() on geometry we're about to output in
one (or many) requested formats such as GeoJSON, KML, etc.
This is useful when getting border polygons for whole countries, but
rendering them at large scale, when most of the high resolution details
cannot be seen anyway. For example, the unsimplified polygon data for
Germany in GeoJSON format currently makes for about 3 MB response body.
With use of this new parameter, the application can greatly reduce the
amount of downloaded data and server response time while providing its
users with the same picture. On a typical laptop screen resolution,
zooming out to fit the whole country borders on screen, only 1/100 amount
of details could be well enough.
2015-04-27 15:16:38 +02:00