Server configuration limits

Hello Team

I am new in openrouteservices. I installed openrouteservice on my ubuntu system with help of docker image.
I am facing a issue. When I am trying to get coordinates between two distance, its show error:

{
  "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": "2024-03-21T13:55:54Z",
      "version": "8.0.0"
    },
    "timestamp": 1728301536674
  }
}

I need your help how can I increase this limit and where I can find config file in my system. ```
server configuration limits



Thanks

You can change the default limit by setting the maximum_distance parameter in your configuration (see the backend documentation: ors.engine.profiles | openrouteservice backend documentation)

Best regards

1 Like

Hi team

Thank you for response
If I will change in ors-config.yml file these value.

1 Like

Hello team
I want to use self download data in source_file “south-america-latest.osm.pbf” on self hosted. but when I add this file path and run docker composer its not taking update data from source_file. Default data is “ors-api/src/test/files/heidelberg.osm.gz” that don’t have much data.

Please help me how to do this.

Have you fixed this issue ? same issue happening to me

No yet. I am still trying o resolve this issue

Hey,

the location you are giving, when running with docker, is the one inside the docker container.
Usually, this should be something like /home/ors/files/your-pbf.osm.pbf.

Check our backend documentation on running using docker for more information.

Best regards