test adjusting

This commit is contained in:
gemo1011
2018-06-05 11:07:51 +02:00
parent 82b6245aaa
commit 796f069d74
2 changed files with 3 additions and 1 deletions

View File

@@ -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\'';

View File

@@ -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 |