I was testing the isochrones feature. With the default configuration values, it works perfectly. However, when I tried increasing the maximum_range_distance to 600 km, I encountered an issue during the graph-building process.
Any help would be greatly appreciated!
Here is the error message:
2025-04-01 21:02:08 ERROR main [ o.s.b.d.LoggingFailureAnalysisReporter ]
APPLICATION FAILED TO START
Description:
Failed to bind properties under ‘ors.endpoints.isochrones.maximum-range-distance’ to java.util.List<org.heigit.ors.api.config.EndpointsProperties$MaximumRangeProperties$MaximumRangePropertiesEntry>:
Property: ors.endpoints.isochrones.maximum-range-distance
Value: "600000"
Origin: System Environment Property "ors.endpoints.isochrones.maximum_range_distance"
Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.util.List<org.heigit.ors.api.config.EndpointsProperties$MaximumRangeProperties$MaximumRangePropertiesEntry>]
Action:
Update your application’s configuration
Here is my docker run options:
docker run -dt --name ors-app
-p 8080:8082
-p 9001:9001
-v $PWD/ors-docker/config:/home/ors/config
-v $PWD/ors-docker/elevation_cache:/home/ors/elevation_cache
-v $PWD/ors-docker/graphs:/home/ors/graphs
-v $PWD/ors-docker/files:/home/ors/files
-v $PWD/ors-docker/logs:/home/ors/logs
-e “XMS=6g”
-e “XMX=8g”
-e ADDITIONAL_JAVA_OPTS=“”
-e REBUILD_GRAPHS=True
-e CONTAINER_LOG_LEVEL=DEBUG
-e “ors.engine.profile_default.build.source_file=files/france-benelux-swiss-latest.osm.pbf”
-e “ors.engine.profile_default.service.maximum_distance=2000000”
-e “ors.engine.profile_default.service.maximum_distance_dynamic_weights=2000000”
-e “ors.engine.profile_default.service.maximum_distance_avoid_areas=2000000”
-e “ors.endpoints.isochrones.maximum_range_distance=600000”
openrouteservice/openrouteservice:latest
The default value specified above can be overridden for a subset of profiles like in the following example. For more details please refer to the documentation.
Great, I’m glad to hear that the original issue has been resolved!
Regarding the java.lang.OutOfMemoryError you could try increasing the Java VM heap space by adjusting the following values that correspond to gigabytes of your available RAM.
You might want to try enabling the so-called fastisochrones algorithm. While it has higher memory requirements it is intended to speed-up long distance isochrone calculations, which seems to be your use case. Please note that the graph build time will increase with fastisochrones enabled.
In order to enable fastisochrones and set their maximum range distance for a given profile, say driving-car, use the following configuration parameters: