open-meteo / geocoding-api

Search locations in any language worlwide
GNU Affero General Public License v3.0
15 stars 7 forks source link

Proximity search #6

Open patrick-zippenfenig opened 1 year ago

patrick-zippenfenig commented 1 year ago

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

joshualyon commented 8 months ago

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.

Leftium commented 3 months ago

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