open-meteo/geocoding-api

Proximity search

patrick-zippenfenig opened this issue · 2 comments

From @woheller69

A nice thing would be a geocoding api which returns the n largest cities around a location inside radius r

https://geocoding-api.open-meteo.com/v1/search?lat=45.0&lon=10.6&radius=50000&num=10

which returns city name, lat, lon for each city

Is this related to the /proximity endpoint?

I tried that endpoint using https://geocoding-api.open-meteo.com/v1/ as the base and it was throwing 502 errors (I've intentionally left out the full path so other users don't try it per the next comment). I noticed that after hitting that endpoint, other parts of the geocoding-api.open-meteo.com would start throwing 502 errors for a brief period of time, so I've stopped testing as I didn't want cause any issues with your service.

Here is a (reference) API for reverse geocoding: https://openweathermap.org/api/geocoding-api#reverse