cleanweather
cleanweather copied to clipboard
openstreetmap.org needs user-agent header
The terms of use for the openstreetmap.org have changed. You now have to present the user-agent header when accessing the api. An example implementation is below.
http.request({ url: "https://nominatim.openstreetmap.org/reverse?format=json&lat="+lat+"&lon="+long+"&zoom=18&addressdetails=1", method: "GET", headers: {"User-Agent": "cleanweathertutorial"}
})