mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
@@ -465,7 +465,7 @@ class SearchDescription
|
|||||||
if ($aFilteredPlaceIDs) {
|
if ($aFilteredPlaceIDs) {
|
||||||
$aNewResults = array();
|
$aNewResults = array();
|
||||||
foreach ($aFilteredPlaceIDs as $iPlaceId) {
|
foreach ($aFilteredPlaceIDs as $iPlaceId) {
|
||||||
$aNewResults[$iPlaceId] = $aResults[$iPLaceId];
|
$aNewResults[$iPlaceId] = $aResults[$iPlaceId];
|
||||||
}
|
}
|
||||||
$aResults = $aNewResults;
|
$aResults = $aNewResults;
|
||||||
if (CONST_Debug) {
|
if (CONST_Debug) {
|
||||||
|
|||||||
@@ -31,6 +31,22 @@ Feature: Structured search queries
|
|||||||
| attr | value |
|
| attr | value |
|
||||||
| querystring | Old Palace Road, GU2 7UP, United Kingdom |
|
| 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
|
Scenario: Amenity, city
|
||||||
When sending json search query "" with address
|
When sending json search query "" with address
|
||||||
| city | amenity |
|
| city | amenity |
|
||||||
|
|||||||
Reference in New Issue
Block a user