forked from osm-search/Nominatim
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for roads add all intersecting boundaries to address list
When roads cross boundaries, both administrative entities should be added to the address list, so that both entities can be used for searching. Also allows in a second step to better sort out addresses of POIs on such roads. Fixes osm-search#121.
- Loading branch information
Showing
4 changed files
with
63 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@DB | ||
Feature: Address computation | ||
Tests for filling of place_addressline | ||
|
||
# github #121 | ||
Scenario: Roads crossing boundaries should contain both states | ||
Given the grid | ||
| 1 | | | 2 | | 3 | | ||
| | 7 | | 8 | | | | ||
| 4 | | | 5 | | 6 | | ||
And the named places | ||
| osm | class | type | geometry | | ||
| W1 | highway | road | 7, 8 | | ||
And the named places | ||
| osm | class | type | admin | geometry | | ||
| W10 | boundary | administrative | 5 | (1, 2, 5, 4, 1) | | ||
| W11 | boundary | administrative | 5 | (2, 3, 6, 5, 2) | | ||
When importing | ||
Then place_addressline contains | ||
| object | address | cached_rank_address | | ||
| W1 | W10 | 10 | | ||
| W1 | W11 | 10 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters