mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
add reverse zoom level that includes minor streets
Zoom 17 now also resolves service roads and similar. Fixes #1350.
This commit is contained in:
@@ -36,8 +36,8 @@ class ReverseGeocode
|
|||||||
13 => 18,
|
13 => 18,
|
||||||
14 => 22, // Suburb
|
14 => 22, // Suburb
|
||||||
15 => 22,
|
15 => 22,
|
||||||
16 => 26, // Street, TODO: major street?
|
16 => 26, // major street
|
||||||
17 => 26,
|
17 => 27, // minor street
|
||||||
18 => 30, // or >, Building
|
18 => 30, // or >, Building
|
||||||
19 => 30, // or >, Building
|
19 => 30, // or >, Building
|
||||||
);
|
);
|
||||||
@@ -246,12 +246,7 @@ class ReverseGeocode
|
|||||||
$sSQL .= ' placex';
|
$sSQL .= ' placex';
|
||||||
$sSQL .= ' WHERE ST_DWithin('.$sPointSQL.', geometry, '.$fSearchDiam.')';
|
$sSQL .= ' WHERE ST_DWithin('.$sPointSQL.', geometry, '.$fSearchDiam.')';
|
||||||
$sSQL .= ' AND';
|
$sSQL .= ' AND';
|
||||||
// only streets
|
$sSQL .= ' rank_address between 26 and '.$iMaxRank;
|
||||||
if ($iMaxRank == 26) {
|
|
||||||
$sSQL .= ' rank_address = 26';
|
|
||||||
} else {
|
|
||||||
$sSQL .= ' rank_address between 26 and '.$iMaxRank;
|
|
||||||
}
|
|
||||||
$sSQL .= ' and (name is not null or housenumber is not null';
|
$sSQL .= ' and (name is not null or housenumber is not null';
|
||||||
$sSQL .= ' or rank_address between 26 and 27)';
|
$sSQL .= ' or rank_address between 26 and 27)';
|
||||||
$sSQL .= ' and (rank_address between 26 and 27';
|
$sSQL .= ' and (rank_address between 26 and 27';
|
||||||
|
|||||||
Reference in New Issue
Block a user