$sSQL .= ' rank_address,';
$sSQL .= ' min(place_id) AS place_id,';
$sSQL .= ' min(parent_place_id) AS parent_place_id,';
- $sSQL .= ' housenumber,';
+ $sSQL .= ' -1 as housenumber,';
$sSQL .= ' country_code,';
$sSQL .= $this->langAddressSql('-1');
$sSQL .= ' get_name_by_language(name,'.$this->aLangPrefOrderSql.') AS placename,';
if ($aFilteredPlaceIDs) {
$aNewResults = array();
foreach ($aFilteredPlaceIDs as $iPlaceId) {
- $aNewResults[$iPlaceId] = $aResults[$iPLaceId];
+ $aNewResults[$iPlaceId] = $aResults[$iPlaceId];
}
$aResults = $aNewResults;
if (CONST_Debug) {
And result addresses contain
| house_number | road |
| 1410 | Juan Antonio Lavalleja |
+
+ Scenario: Address with non-numerical house number
+ When sending jsonv2 reverse coordinates 53.579805460944,9.9475670458196
+ Then result addresses contain
+ | house_number | road |
+ | 43 Haus 4 | Stellinger Weg |
+
+
+ Scenario: Address with numerical house number
+ When sending jsonv2 reverse coordinates 53.580206752486,9.9502944945198
+ Then result addresses contain
+ | house_number | road |
+ | 5 | Clasingstraße |
| attr | value |
| querystring | Old Palace Road, GU2 7UP, United Kingdom |
+ Scenario: Street with housenumber, city and postcode
+ When sending xml search query "" with address
+ | street | city | postalcode |
+ | 19 Am schrägen Weg | Vaduz | 9490 |
+ Then result addresses contain
+ | house_number | road |
+ | 19 | Am Schrägen Weg |
+
+ Scenario: Street with housenumber, city and bad postcode
+ When sending xml search query "" with address
+ | street | city | postalcode |
+ | 19 Am schrägen Weg | Vaduz | 9491 |
+ Then result addresses contain
+ | house_number | road |
+ | 19 | Am Schrägen Weg |
+
Scenario: Amenity, city
When sending json search query "" with address
| city | amenity |