]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 13 Feb 2013 23:47:22 +0000 (00:47 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 13 Feb 2013 23:47:22 +0000 (00:47 +0100)
sql/functions.sql
sql/partition-functions.src.sql
website/reverse.php

index 476dff3b712a3f7f8c31864161d1af22b6cabdb6..6fbfa7326a7bdf2a345a36c96cd85b86c5d84ea7 100644 (file)
@@ -2321,7 +2321,7 @@ DROP TYPE addressline CASCADE;
 create type addressline as (
   place_id BIGINT,
   osm_type CHAR(1),
-  osm_id INTEGER,
+  osm_id BIGINT,
   name HSTORE,
   class TEXT,
   type TEXT,
index 6afbbdda15cc48b34150f5974e808a552249b5f4..0e26849d5e93d5ab964666a6e1d315d2eae57d3e 100644 (file)
@@ -124,7 +124,7 @@ BEGIN
           ST_Distance(centroid, point) as distance, null as isguess
           FROM search_name_-partition-
           WHERE name_vector @> ARRAY[isin_token]
-          AND ST_DWithin(centroid, point, 0.03)
+          AND ST_DWithin(centroid, point, 0.01) 
           AND search_rank between 22 and 27
       ORDER BY distance ASC limit 1
     LOOP
index 434b5bd10daed928a18ef1ba24b705091bf09dee..c348659e25d02fd7cdc136d223ad9b877bd20cd8 100755 (executable)
@@ -91,7 +91,7 @@
                $iMaxRank = (isset($_GET['zoom']) && isset($aZoomRank[$_GET['zoom']]))?$aZoomRank[$_GET['zoom']]:28;
 
                // Find the nearest point
-               $fSearchDiam = 0.0001;
+               $fSearchDiam = 0.0004;
                $iPlaceID = null;
                $aArea = false;
                $fMaxAreaDistance = 1;