osm-search / nominatim-ui

Debug UI for Nominatim
GNU General Public License v2.0
84 stars 31 forks source link

Reverse page: update lat/lon test #247

Closed ericgrosso closed 4 months ago

ericgrosso commented 4 months ago

The current test of the reverse geocoding parameters is only based on the lat parameter.

It means that even if the lon input/parameter is absent, the API (reverse endpoint) is fetched and returns an error: {"error":{"code":400,"message":"Parameter 'lon' missing."}}

Here is an example: https://nominatim.openstreetmap.org/ui/reverse.html?lat=65&zoom=18

The purpose of this PR is to add the lon parameter to the test.

mtmail commented 4 months ago

thanks a lot