# Alternative routes limitation issues

**URL:** <https://ask.openrouteservice.org/t/alternative-routes-limitation-issues/6688>\
**Category:** directions\
**Created:** [November 21, 2024, 11:02am UTC](https://ask.openrouteservice.org/t/alternative-routes-limitation-issues/6688 "2024-11-21T11:02:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RajeshVE22](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/rajeshve22/32/3289_2.png) [@RajeshVE22](https://ask.openrouteservice.org/u/RajeshVE22)\
**Post date:** [November 21, 2024, 11:02am UTC](https://ask.openrouteservice.org/t/alternative-routes-limitation-issues/6688/1 "2024-11-21T11:02:38Z")

</div>

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:

```auto
 ##### 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

```

---

<div class="post-metadata">

**Author:** ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)\
**Post date:** [November 25, 2024, 11:15am UTC](https://ask.openrouteservice.org/t/alternative-routes-limitation-issues/6688/2 "2024-11-25T11:15:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RajeshVE22](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/rajeshve22/32/3289_2.png) [@RajeshVE22](https://ask.openrouteservice.org/u/RajeshVE22)\
**Post date:** [November 26, 2024, 12:34pm UTC](https://ask.openrouteservice.org/t/alternative-routes-limitation-issues/6688/3 "2024-11-26T12:34:37Z")

</div>

Thanks for reply  
I will try

---

<div class="post-metadata">

**Author:** ![RajeshVE22](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/rajeshve22/32/3289_2.png) [@RajeshVE22](https://ask.openrouteservice.org/u/RajeshVE22)\
**Post date:** [November 28, 2024, 7:41am UTC](https://ask.openrouteservice.org/t/alternative-routes-limitation-issues/6688/4 "2024-11-28T07:41:25Z")

</div>

I tried but it’s working

---

<div class="post-metadata">

**Author:** ![andrzej](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/andrzej/32/10_2.png) [@andrzej](https://ask.openrouteservice.org/u/andrzej)\
**Post date:** [November 28, 2024, 7:54am UTC](https://ask.openrouteservice.org/t/alternative-routes-limitation-issues/6688/5 "2024-11-28T07:54:08Z")

</div>

So is it working or not? 🤔

---

<div class="post-metadata">

**Author:** ![RajeshVE22](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/rajeshve22/32/3289_2.png) [@RajeshVE22](https://ask.openrouteservice.org/u/RajeshVE22)\
**Post date:** [November 28, 2024, 7:55am UTC](https://ask.openrouteservice.org/t/alternative-routes-limitation-issues/6688/6 "2024-11-28T07:55:00Z")

</div>

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.’  
},

---

<div class="post-metadata">

**Author:** ![RajeshVE22](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/rajeshve22/32/3289_2.png) [@RajeshVE22](https://ask.openrouteservice.org/u/RajeshVE22)\
**Post date:** [December 3, 2024, 8:27am UTC](https://ask.openrouteservice.org/t/alternative-routes-limitation-issues/6688/7 "2024-12-03T08:27:08Z")

</div>

Hi  
Any one know how to increase distance with alternative\_routes
