Maximum intervals ignored in ors-config.yml (ORS v9.1.2 local instance)

I’m running a self-hosted local instance of OpenRouteService v9.1.2 using Java 21 and a .pbf extract of Japan. I’m trying to increase the maximum number of isochrone intervals beyond the default (which appears to be 1), but despite configuring maximum_intervals in ors-config.yml, ORS continues to throw the following error when more than 1 interval is requested:

Parameter ‘interval’ is out of range: Resulting number of 3 isochrones exceeds maximum value of 1.

Is maximum_intervals hardcoded in ORS v9.1.2? Or is there a specific path/config structure required to override the default limit of 1?

My config file looks like this:

ors:
services:
isochrones:
enabled: true
maximum_locations: 2
maximum_intervals: 10
allow_compute_area: true
maximum_range_time_default: 1800
maximum_range_time:
- profiles: driving-car
value: 3600

engine:
profile_default:
build:
source_file: MY_PATH
elevation: false
profiles:
active: [driving-car]
driving-car:
enabled: true

server:
port: 8080

I’ve verified that the config file is being loaded at startup, and I always delete the graphs/ folder before restarting ORS. But the maximum_intervals setting doesn’t seem to be applied.

Thanks in advance for your support!

Best wishes,
Sacha

Dear Sacha,

thanks for reaching out! :heart:

Your configuration entries for specifying maximum_intervals and other isochrone settings seem to be misplaced. As documented they should appear under ors.endpoints.isochrones rather than ors.services.isochrones.

Please note that you don’t need to delete the graphs/ folder between the restarts of ORS for the changes to the isochrone settings to be applied.

Cheers,
Andrzej

2 Likes

Dear Andrzej,

Thank you so much for your prompt response! I have adjusted my config file (ors-config.yml) as below, and it all worked out. I will check the documentation a little more carefully going forward. Also, well noted that there is no need to redo the graphs/ folder each time.

Very much appreciated!

ors:
endpoints:
isochrones:
enabled: true
maximum_intervals: 12

engine:
profiles:
active: [driving-car]
driving-car:
enabled: true
build:
source_file: MY_PATH
elevation: false

server:
port: 8080

2 Likes