Hello ORS Community,
I am running a local instance of the ORS JAR with a custom configuration file (ors-config.yml). My issue is that the default configuration limits on distances are too restrictive for my needs. Despite increasing these limits in my configuration file, the instance still applies the default values once it is running.
After launching the instance, the API response from http://localhost:8082/ors/v2/status
shows the following, indicating that the default distance limits are still in place:
{
"languages": [
"cs",
"cs-cz",
"de",
"de-de",
"en",
"en-us",
"eo",
"eo-eo",
"es",
"es-es",
"fr",
"fr-fr",
"gr",
"gr-gr",
"he",
"he-il",
"hu",
"hu-hu",
"id",
"id-id",
"it",
"it-it",
"ja",
"ja-jp",
"nb",
"nb-no",
"ne",
"ne-np",
"nl",
"nl-nl",
"pl",
"pl-pl",
"pt",
"pt-pt",
"ro",
"ro-ro",
"ru",
"ru-ru",
"tr",
"tr-tr",
"zh",
"zh-cn"
],
"engine": {
"build_date": "2024-05-14T13:00:37Z",
"version": "8.0.1"
},
"profiles": {
"profile 1": {
"storages": {
"WayCategory": {
"gh_profile": "car_ors_fastest_with_turn_costs"
},
"HeavyVehicle": {
"gh_profile": "car_ors_fastest_with_turn_costs"
},
"WaySurfaceType": {
"gh_profile": "car_ors_fastest_with_turn_costs"
},
"RoadAccessRestrictions": {
"gh_profile": "car_ors_fastest_with_turn_costs",
"use_for_warnings": "true"
}
},
"profiles": "driving-car",
"creation_date": "",
"limits": {
"maximum_distance": 100000,
"maximum_waypoints": 50,
"maximum_distance_dynamic_weights": 100000,
"maximum_distance_avoid_areas": 100000
}
}
},
"services": [
"routing",
"isochrones",
"matrix",
"snap"
]
}
Here is my configuration file (ors-config.yml
) :
server:
port: 8082
error:
whitelabel:
enabled: false
servlet:
context-path: /ors
tomcat:
keep-alive-timeout: 30000
spring:
profiles:
active: car
mvc:
servlet:
path: /
ors:
cors:
allowed_origins: "*"
allowed_headers: Content-Type, X-Requested-With, accept, Origin, Access-Control-Request-Method, Access-Control-Request-Headers, Authorization
preflight_max_age: 600
endpoints:
routing:
enabled: true
attribution: openrouteservice.org, OpenStreetMap contributors, tmc - BASt
gpx_name: ORSRouting
gpx_description: This is a directions instructions file as GPX, generated from openrouteservice
gpx_base_url: https://openrouteservice.org/
gpx_support_mail: support@openrouteservice.org
gpx_author: openrouteservice
gpx_content_licence: LGPL 3.0
maximum_avoid_polygon_area: 200000000
maximum_avoid_polygon_extent: 20000
maximum_alternative_routes: 3
maximum_distance: 200000000
matrix:
enabled: true
attribution: openrouteservice.org, OpenStreetMap contributors
maximum_routes: 100
maximum_routes_flexible: 25
maximum_visited_nodes: 1000000
u_turn_costs: -1
isochrone:
enabled: true
attribution: openrouteservice.org, OpenStreetMap contributors
maximum_locations: 2
maximum_intervals: 1
allow_compute_area: true
maximum_range_distance_default: 9000000
maximum_range_distance:
- profiles: driving-car, driving-hgv
value: 9000000
maximum_range_time_default: 18000
maximum_range_time:
- profiles: driving-car, driving-hgv
value: 3600
fastisochrones:
maximum_range_distance_default: 50000
maximum_range_distance:
- profiles: driving-car, driving-hgv
value: 500000
maximum_range_time_default: 18000
maximum_range_time:
- profiles: driving-car, driving-hgv
value: 10800
Snap:
enabled: true
attribution: openrouteservice.org, OpenStreetMap contributors
engine:
source_file: ors-core/data/france.osm.pbf
graphs_root_path: ors-core/data/graphs
elevation:
cache_path: ors-core/data/elevation_cache
profiles:
active:
enabled: true
profile: driving-car
attribution: openrouteservice.org, OpenStreetMap contributors
maximum_locations: 2
maximum_intervals: 1
allow_compute_area: true
maximum_range_distance_default: 9000000
maximum_range_distance:
- profiles: driving-car, driving-hgv
value: 9000000
maximum_range_time_default: 18000
maximum_range_time:
- profiles: driving-car, driving-hgv
value: 3600
fastisochrones:
maximum_range_distance_default: 50000
maximum_range_distance:
- profiles: driving-car, driving-hgv
value: 500000
maximum_range_time_default: 18000
maximum_range_time:
- profiles: driving-car, driving-hgv
value: 9000000
elevation: true
encoder_options:
turn_costs: true
block_fords: false
use_acceleration: true
preparation:
min_network_size: 200
min_one_way_network_size: 200
methods:
ch:
enabled: true
threads: 1
weightings: fastest
lm:
enabled: false
threads: 1
weightings: fastest,shortest
landmarks: 16
core:
enabled: true
threads: 1
weightings: fastest,shortest
landmarks: 64
lmsets: highways;allow_all
execution:
methods:
ch:
disabling_allowed: true
lm:
disabling_allowed: true
active_landmarks: 6
core:
disabling_allowed: true
active_landmarks: 6
ext_storages:
WayCategory: null
HeavyVehicle: null
WaySurfaceType: null
RoadAccessRestrictions:
use_for_warnings: true