# Change ors limits

**URL:** https://ask.openrouteservice.org/t/change-ors-limits/5822
**Category:** openrouteservice
**Created:** [February 25, 2024, 12:29am UTC](https://ask.openrouteservice.org/t/change-ors-limits/5822 "2024-02-25T00:29:18Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![DejavuDaniel](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/dejavudaniel/32/2820_2.png) [@DejavuDaniel](https://ask.openrouteservice.org/u/DejavuDaniel)
#### Post date: [February 25, 2024, 12:29am UTC](https://ask.openrouteservice.org/t/change-ors-limits/5822/1 "2024-02-25T00:29:18Z")

</div>

Hi how do i change the limits in config file ?  
i don’t understand the docs. should i edit yml file or the json.  
i’ve tried both and it doesn’t work…  
i want to set these to errors to be unlimited:

```auto
Map.js:94 Server responded with 400: {"error":{"code":2004,"message":"Request parameters exceed the server configuration limits. The approximated route distance must not be greater than 100000.0 meters."},"info":{"engine":{"build_date":"2023-11-16T15:05:35Z","version":"7.2.0"},"timestamp":1708820585903}}

```

and :

```auto
Error response: {"code":3,"error":"Request parameters exceed the server configuration limits. Only a total of 2500 routes are allowed."}

```

---

<div class="post-metadata">

### Author: ![JamppaSuomesta](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/j/f07891/32.png) [@JamppaSuomesta](https://ask.openrouteservice.org/u/JamppaSuomesta)
#### Post date: [May 10, 2024, 8:11am UTC](https://ask.openrouteservice.org/t/change-ors-limits/5822/2 "2024-05-10T08:11:05Z")

</div>

I have the same problem… I’d wish to set boundaries for map

---

<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: [May 10, 2024, 9:02am UTC](https://ask.openrouteservice.org/t/change-ors-limits/5822/3 "2024-05-10T09:02:21Z")

</div>

Hi @DejavuDaniel

the first one can be adjusted with `maximum_distance` in [ors.engine.profiles | openrouteservice backend documentation](https://giscience.github.io/openrouteservice/run-instance/configuration/ors/engine/profiles#ors-engine-profiles)

the second one seems to be a matrix response where you can set the max pairs in:

> **[ors.endpoints.matrix | openrouteservice backend documentation](https://giscience.github.io/openrouteservice/run-instance/configuration/ors/endpoints/matrix)**
>
> openrouteservice backend documentation

---

<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: [May 10, 2024, 9:03am UTC](https://ask.openrouteservice.org/t/change-ors-limits/5822/4 "2024-05-10T09:03:00Z")

</div>

Hi @JamppaSuomesta,

i have no idea what you could mean with setting boundaries for map?  
Please elaborate

---

<div class="post-metadata">

### Author: ![JamppaSuomesta](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/j/f07891/32.png) [@JamppaSuomesta](https://ask.openrouteservice.org/u/JamppaSuomesta)
#### Post date: [May 10, 2024, 5:19pm UTC](https://ask.openrouteservice.org/t/change-ors-limits/5822/5 "2024-05-10T17:19:30Z")

</div>

Hi @amandus,

What I mean is the bounding box (is there one?) of the map data being  
processed.

My setup does seem to work ok, but when I try i get always error saying  
that the point(s) is/are invalid. But when I try agains API playground and  
not developer settings… it rocks?

---

<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: [September 2, 2024, 10:14am UTC](https://ask.openrouteservice.org/t/change-ors-limits/5822/6 "2024-09-02T10:14:25Z")

</div>

The data used is limited to your PBF file.

Make sure you use the correct [source\_file](https://giscience.github.io/openrouteservice/run-instance/configuration/ors/engine/#ors-engine) and rebuild the graphs. ([Remove graphs folder or set `REBUILD_GRAPHS`](https://giscience.github.io/openrouteservice/run-instance/running-with-docker#configure))

Best regards
