have reverse fall back to country table when no country is found

This commit is contained in:
Sarah Hoffmann
2024-12-12 17:14:02 +01:00
parent 494640c535
commit 416e70b97e
2 changed files with 38 additions and 8 deletions

View File

@@ -10,15 +10,19 @@ Feature: Reverse geocoding
Examples:
| lat | lon |
| 0.0 | 0.0 |
| -34.830 | -56.105 |
| 45.174 | -103.072 |
| 21.156 | -12.2744 |
| 91.3 | 0.4 |
| -700 | 0.4 |
| 0.2 | 324.44 |
| 0.2 | -180.4 |
Scenario: Unknown countries fall back to default country grid
When sending v1/reverse at 45.174,-103.072
Then results contain
| category | type | display_name |
| place | country | United States |
@Tiger
Scenario: TIGER house number
When sending v1/reverse at 32.4752389363,-86.4810198619