mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
test adjusting
This commit is contained in:
@@ -142,7 +142,7 @@ class ReverseGeocode
|
|||||||
$sSQL .= ' FROM placex';
|
$sSQL .= ' FROM placex';
|
||||||
$sSQL .= ' WHERE osm_type = \'N\'';
|
$sSQL .= ' WHERE osm_type = \'N\'';
|
||||||
if ($iRankAddress = 16){
|
if ($iRankAddress = 16){
|
||||||
// using rank_search beacause of a better differentiation for place nodes at rank_address 16
|
// using rank_search because of a better differentiation for place nodes at rank_address 16
|
||||||
$sSQL .= ' AND rank_search > '.$iRankSearch;
|
$sSQL .= ' AND rank_search > '.$iRankSearch;
|
||||||
$sSQL .= ' AND rank_search <= ' .Min(25, $iMaxRank);
|
$sSQL .= ' AND rank_search <= ' .Min(25, $iMaxRank);
|
||||||
$sSQL .= ' AND class = \'place\'';
|
$sSQL .= ' AND class = \'place\'';
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ Feature: Reverse geocoding
|
|||||||
|
|
||||||
Scenario: Location off the coast
|
Scenario: Location off the coast
|
||||||
When sending jsonv2 reverse coordinates 54.046489113,8.5546870529
|
When sending jsonv2 reverse coordinates 54.046489113,8.5546870529
|
||||||
|
| zoom |
|
||||||
|
| 5 |
|
||||||
Then results contain
|
Then results contain
|
||||||
| display_name |
|
| display_name |
|
||||||
| ^.*Hamburg, Deutschland |
|
| ^.*Hamburg, Deutschland |
|
||||||
|
|||||||
Reference in New Issue
Block a user