# Set \`radiuses\` parameter in R

**URL:** https://ask.openrouteservice.org/t/set-radiuses-parameter-in-r/3344
**Category:** R
**Created:** [November 22, 2021, 6:37pm UTC](https://ask.openrouteservice.org/t/set-radiuses-parameter-in-r/3344 "2021-11-22T18:37:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![B3nEIs](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/b/eada6e/32.png) [@B3nEIs](https://ask.openrouteservice.org/u/B3nEIs)
#### Post date: [November 22, 2021, 6:37pm UTC](https://ask.openrouteservice.org/t/set-radiuses-parameter-in-r/3344/1 "2021-11-22T18:37:39Z")

</div>

Hello Team Openrouteservice,

Thank you for your really useful ors service!

I would like to change the `radiuses` parameter for R ors\_optimization().

Could you help me with some example code? I can’t figure out how to pass it to the function:

res ← ors\_optimization(jobs, vehicles, options = list(g = TRUE))

Best  
Benjamin

---

<div class="post-metadata">

### Author: ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)
#### Post date: [November 25, 2021, 11:12am UTC](https://ask.openrouteservice.org/t/set-radiuses-parameter-in-r/3344/2 "2021-11-25T11:12:43Z")

</div>

Hey,

the [optimization API](https://openrouteservice.org/dev/#/api-docs/optimization/post) doesn’t have a `radiuses` parameter.

Best regards

---

<div class="post-metadata">

### Author: ![B3nEIs](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/b/eada6e/32.png) [@B3nEIs](https://ask.openrouteservice.org/u/B3nEIs)
#### Post date: [November 25, 2021, 1:59pm UTC](https://ask.openrouteservice.org/t/set-radiuses-parameter-in-r/3344/3 "2021-11-25T13:59:22Z")

</div>

Hi,

thanks for your reply!

When I call the R function ors\_optimization() the returned object comes with routing information as described in [Query openrouteservice from R • openrouteservice](https://giscience.github.io/openrouteservice-r/articles/openrouteservice.html).

It works very well with most points close to roads.

We have one sampling point high up in Black Forest that gets rejected with the following Error message:

Error: Openrouteservice API request failed  
[500] Could not find routable point within a radius of 350.0 meters of specified coordinate 6: 8.0569910 47.8784700.
