improve place node search when no areas found

Only look for place nodes in a certain radius according
to the rank_search of the place node.
This commit is contained in:
Sarah Hoffmann
2018-08-04 18:44:17 +02:00
parent 7f10264fb6
commit 646fa53b44
5 changed files with 92 additions and 44 deletions

View File

@@ -48,8 +48,14 @@ Feature: Reverse geocoding
Scenario: Location off the coast
When sending jsonv2 reverse coordinates 54.046489113,8.5546870529
| zoom |
| 5 |
Then results contain
| error |
| Unable to geocode |
| display_name |
| Freie und Hansestadt Hamburg, Deutschland |
Scenario: When slightly outside town, the town is not shown
When sending jsonv2 reverse coordinates -32.122,-56.114
| zoom |
| 15 |
Then results contain
| display_name |
| Tacuarembó, Uruguay |