mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
Reverse geocode include geometry
This commit is contained in:
@@ -61,3 +61,75 @@ Feature: Reverse geocoding
|
||||
| xml
|
||||
| json
|
||||
| jsonv2
|
||||
|
||||
|
||||
Scenario Outline: Reverse Geocoding contains TEXT geometry
|
||||
Given the request parameters
|
||||
| polygon_text
|
||||
| 1
|
||||
When looking up <format> coordinates 48.86093,2.2978
|
||||
Then result 0 has attributes <response_attribute>
|
||||
|
||||
Examples:
|
||||
| format | response_attribute
|
||||
| xml | geotext
|
||||
| json | geotext
|
||||
| jsonv2 | geotext
|
||||
|
||||
Scenario Outline: Reverse Geocoding contains polygon-as-points geometry
|
||||
Given the request parameters
|
||||
| polygon
|
||||
| 1
|
||||
When looking up <format> coordinates 48.86093,2.2978
|
||||
Then result 0 has not attributes <response_attribute>
|
||||
|
||||
Examples:
|
||||
| format | response_attribute
|
||||
| xml | polygonpoints
|
||||
| json | polygonpoints
|
||||
| jsonv2 | polygonpoints
|
||||
|
||||
|
||||
|
||||
Scenario Outline: Reverse Geocoding contains SVG geometry
|
||||
Given the request parameters
|
||||
| polygon_svg
|
||||
| 1
|
||||
When looking up <format> coordinates 48.86093,2.2978
|
||||
Then result 0 has attributes <response_attribute>
|
||||
|
||||
Examples:
|
||||
| format | response_attribute
|
||||
| xml | geosvg
|
||||
| json | svg
|
||||
| jsonv2 | svg
|
||||
|
||||
|
||||
Scenario Outline: Reverse Geocoding contains KML geometry
|
||||
Given the request parameters
|
||||
| polygon_kml
|
||||
| 1
|
||||
When looking up <format> coordinates 48.86093,2.2978
|
||||
Then result 0 has attributes <response_attribute>
|
||||
|
||||
Examples:
|
||||
| format | response_attribute
|
||||
| xml | geokml
|
||||
| json | geokml
|
||||
| jsonv2 | geokml
|
||||
|
||||
|
||||
Scenario Outline: Reverse Geocoding contains GEOJSON geometry
|
||||
Given the request parameters
|
||||
| polygon_geojson
|
||||
| 1
|
||||
When looking up <format> coordinates 48.86093,2.2978
|
||||
Then result 0 has attributes <response_attribute>
|
||||
|
||||
Examples:
|
||||
| format | response_attribute
|
||||
| xml | geojson
|
||||
| json | geojson
|
||||
| jsonv2 | geojson
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user