# Change Acceptance Radius for Points

**URL:** https://ask.openrouteservice.org/t/change-acceptance-radius-for-points/1712
**Category:** QGIS
**Created:** [May 15, 2020, 1:43am UTC](https://ask.openrouteservice.org/t/change-acceptance-radius-for-points/1712 "2020-05-15T01:43:50Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mmwarren95](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/mmwarren95/32/566_2.png) [@mmwarren95](https://ask.openrouteservice.org/u/mmwarren95)
#### Post date: [May 15, 2020, 1:43am UTC](https://ask.openrouteservice.org/t/change-acceptance-radius-for-points/1712/1 "2020-05-15T01:43:50Z")

</div>

I have been using the 2 layer point to point directions feature of ORSTools with QGIS 3.10.5. I have been studying rural America and have had about 20% of the queries failing because my start points are more than 350 meters from any road. There is a “Radiuses” parameter I can add to the API query to change the 350 meter limit after the preferences:fastest option.  
How can I add the radiuses:-1 into the call to the api in the simplest way possible? I studied the Python code but couldn’t figure out where to add the command. I am willing to hard code my radius and don’t need to add to the menu in QGIS.

I really appreciate any tips!

---

<div class="post-metadata">

### Author: ![nils](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/nils/32/6_2.png) [@nils](https://ask.openrouteservice.org/u/nils)
#### Post date: [May 17, 2020, 6:14am UTC](https://ask.openrouteservice.org/t/change-acceptance-radius-for-points/1712/2 "2020-05-17T06:14:19Z")

</div>

Just add `params['radiuses'] = [-1, -1]` here:

> <https://github.com/GIScience/orstools-qgis-plugin/blob/3cc6d3badb10740bfda6ec6ca07e748885349fdb/ORStools/proc/directions_points_layers_proc.py#L268>

---

<div class="post-metadata">

### Author: ![mmwarren95](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/mmwarren95/32/566_2.png) [@mmwarren95](https://ask.openrouteservice.org/u/mmwarren95)
#### Post date: [May 19, 2020, 6:49pm UTC](https://ask.openrouteservice.org/t/change-acceptance-radius-for-points/1712/3 "2020-05-19T18:49:48Z")

</div>

Works perfectly. Exactly what I was trying but couldn’t find correct location. This helps immensely. Cheers.

---

<div class="post-metadata">

### Author: ![AlexCarline89](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/a/e47774/32.png) [@AlexCarline89](https://ask.openrouteservice.org/u/AlexCarline89)
#### Post date: [January 3, 2021, 10:20pm UTC](https://ask.openrouteservice.org/t/change-acceptance-radius-for-points/1712/4 "2021-01-03T22:20:52Z")

</div>

Hello, I am running into the same issue with the 1 layer point method. Coding certainly isn’t my strong suit. I have found the correct .py file, but I do not see a line similar to the “params[‘coordinates’] = coordinates” listed above.

Where is the correct location to input the “params[‘radiuses’] = [-1, -1]” for the 1 layer method?  
Thank you!

---

<div class="post-metadata">

### Author: ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)
#### Post date: [January 4, 2021, 2:16pm UTC](https://ask.openrouteservice.org/t/change-acceptance-radius-for-points/1712/5 "2021-01-04T14:16:48Z")

</div>

Hi @AlexCarline89,

if you are in the correct file it is, as nils posted above, in the line 268 where you have to paste it.

> <https://github.com/GIScience/orstools-qgis-plugin/blob/master/ORStools/proc/directions_points_layers_proc.py#L266-L268>

make sure to not confuse it with `directions_points_layer_proc.py` (nice naming @nils :P)

---

<div class="post-metadata">

### Author: ![damoon\_molaei](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/damoon_molaei/32/3237_2.png) [@damoon\_molaei](https://ask.openrouteservice.org/u/damoon_molaei)
#### Post date: [August 28, 2024, 2:31am UTC](https://ask.openrouteservice.org/t/change-acceptance-radius-for-points/1712/6 "2024-08-28T02:31:15Z")

</div>

Hi,  
when I am using the 2 layer point to point directions it give me this error. How can I fixed it in the new version?  
Route from F1042DL to Boral caused a ApiError:  
404 ({“error”:{“code”:2010,“message”:“Could not find routable point within a radius of 350.0 meters of specified coordinate 0: 144.0070590 -37.4468930.”},“info”:{“engine”:{“build\_date”:“2024-08-13T07:37:07Z”,“version”:“8.1.2”},“timestamp”:1724812090133}})

---

<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: [August 28, 2024, 2:28pm UTC](https://ask.openrouteservice.org/t/change-acceptance-radius-for-points/1712/7 "2024-08-28T14:28:30Z")

</div>

Hey,

the API hasn’t changed, so either you choose a point closer to the road or you try your luck with the `radiuses` parameter.

Best regards
