Recently, in R, every time I try to query the OpenStreetMap database through the osmdata package, I get the following error:
Error in `httr2::req_perform()`:
! HTTP 405 Method Not Allowed.
I've always used this package to download data from OpenStreetMap directly in R, but now it's not working anymore. That's an example of the code I am trying to use, which should return the bounding box of a city:
library(osmdata)
city_bbox <- getbb(place_name = "Milan, Italy")
packageVersion('osmdata'), mine osmdata-0.1.10, working as expected on above query.debugonce(osmdata::getbb)and stepped thru to wherehttr2::req_perform()appears?