Cannot get smoothing option to work in ors_isochrone in R

Hello,

I am having difficulty using the “smoothing” option in ors_isochrones using the ORS API in R. I didn’t want to open an issue in Github as I read that this is the right space for questions. Hopefully that I understood that correctly. Example code I am using is below, everything works until I try to add the “smoothing” option.

I would really appreciate if you could help me as ORS is really helpful for some work I am doing and the smoothing option would be quite important. Thank you

coordinates <- list(c(8.330469, 48.261570))
options1 <- list(smoothing=50)

res <- ors_isochrones(coordinates, range = 1200, output = "sf", profile = "foot-walking", options=options1)

Thanks for reaching out! :heart:

The smoothing parameter is defined at top level rather than being nested under options. Therefore, the correct call should look like in the example below. You can find an overview of all available isochrone parameters in the interactive API documentation.

library("openrouteservice")

coordinates <- list(c(8.330469, 48.261570))

res <- ors_isochrones(coordinates, range = 1200, output = "sf", profile = "foot-walking", smoothing = 50)