Alternative routes limitation issues

HI Team

I am using OpenRouteService on Self hosted. It was working fine for me. Now I want to implement alternative route bit when I implement alternative route its throw error like :
Request parameters exceed the server configuration limits. With these options, the approximated route distance must not be greater than 100000.0 meters.
Without alternative route its return direction more then 100000 distance but when I use alternative route its throw error.
How to increase limit with alternative route
This is my config file:

 ##### ORS endpoints settings #####
  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: 
      gpx_support_mail: 
      gpx_author: t
      gpx_content_licence: LGPL 3.0
      maximum_avoid_polygon_area: 200000000
      maximum_avoid_polygon_extent: 20000
      maximum_alternative_routes: 3
    matrix:
      enabled: true
      attribution: openrouteservice.org, OpenStreetMap contributors
      maximum_routes: 5000000
      maximum_routes_flexible: 25
      maximum_visited_nodes: 100000
      maximum_search_radius: 2000
      u_turn_costs: -1
    isochrones:
      enabled: true
      attribution: openrouteservice.org, OpenStreetMap contributors
      maximum_locations: 2
      maximum_intervals: 1
      allow_compute_area: true
      maximum_range_distance_default: 1000000
       maximum_range_distance:
        - profiles: driving-car, driving-hgv
          value: 1000000
      maximum_range_time_default: 36000
      maximum_range_time:
        - profiles: driving-car, driving-hgv
          value: 36000
      fastisochrones:
        maximum_range_distance_default: 50000
        maximum_range_distance:
          - profiles: driving-car, driving-hgv
            value: 1000000
        maximum_range_time_default: 36000
        maximum_range_time:
          - profiles: driving-car, driving-hgv
            value: 36000
    snap:
      enabled: true
      attribution: openrouteservice.org, OpenStreetMap contributors
      maximum_locations: 500000

  ##### ORS engine settings #####
  engine:
    source_file: /home/ors/files/us-latest.osm.pbf
    profile_default:
      enabled: true
      elevation: false
      elevation_smoothing: false
      encoder_flags_size: 8
      instructions: true
	  optimize: false
      traffic: false
      maximum_distance: 1000000
      maximum_distance_dynamic_weights: 1000000
      maximum_distance_avoid_areas: 100000
      maximum_waypoints: 50
      maximum_snapping_radius: 400
      maximum_distance_alternative_routes: 1000000
      maximum_distance_round_trip_routes: 500000
      maximum_speed_lower_bound: 80
      maximum_visited_nodes: 1000000
      location_index_resolution: 500
      location_index_search_iterations: 4
      force_turn_costs: false
      interpolate_bridges_and_tunnels: true
      preparation:
        min_network_size: 200
        methods:
          lm:
            enabled: true
            threads: 1
            weightings: recommended,shortest
            landmarks: 16
       execution:
        methods:
          lm:
            active_landmarks: 8
    profiles:
      car:
        profile: driving-car
        enabled: true
      hgv:
        profile: driving-hgv
        enabled: true

Hi @RajeshVE22,

normally maximum_distance_alternative_routes should be the parameter to increase. But that should already be set to 1000000. Not sure if you copy pasted the error message and the error output doesn’t match the config, or if it’s a typo and missing a 0 in the error.

You could try again with increased value. But computation time will also increase.

Best regards

Thanks for reply
I will try

I tried but it’s working

So is it working or not? :thinking:

Not working
Throw this error:

API Error: {
error: {
code: 2004,
message: ‘Request parameters exceed the server configuration limits. With these options, the approximated route distance must not be greater than 100000.0 meters.’
},

Hi
Any one know how to increase distance with alternative_routes