cleanweather icon indicating copy to clipboard operation
cleanweather copied to clipboard

openstreetmap.org needs user-agent header

Open markphipps opened this issue 7 years ago • 0 comments

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"}

            })

markphipps avatar May 18 '18 14:05 markphipps