Cannot route to a track within 'Scrub'

Kia ora,

I am using the ORS backend as a Java library, but have yet to upgrade to the latest version of ORS.

My issue lies within the following code block:

RouteRequest request1 = new RouteRequest(new Double[][]{{from.x, from.y}{to.x, to.y}});
req.setProfile(APIEnums.Profile car);
req.setAttributes(new APIEnums.Attributes[{APIEnums.Attributes.DETOUR_FACTOR});
req.setExtraInfo(new APIEnums.ExtraInfo[]{APIEnums.ExtraInfo.OSM_ID});
req.setIncludeGeometry(true);
req.setRoutePreference(APIEnums.RoutePreference.FASTEST);
RouteResult[] res = req.generateRouteFromRequest();

I have been using this method for over a year with no issues. However, requesting a route from (-41.28608, 174.77789) to (-40.985007, 175.389729) produces a routing error:

Could not find routable point within a radius of 1000000000.0 meters of specified coordinate 1: 175.3897290 -40.9850070.

I think I have figured out you cannot generate routes to a point within this ‘Scrub’. For example, a point immediately outside the scrub (-40.99072,175.38882) succeeds, but a point immediately within the scrub (-40.99044,175.38921) fails.

I assume this is because the part of the Lower Waiohine Track within the scrub is a different surface type (‘natural’) to that outside the scrub, which a vehicle is unable to travel on?

In any case, how might I adjust my config/code such as to allow routes to within scrub, even if on foot?

Deeply appreciate your help.

The subset of my ors-config.json related to the driving-car is as follows:

"profile-car": {
  "profiles": "driving-car",
  "parameters": {
    "encoder_flags_size": 8,
    "encoder_options": "turn_costs=true|block_fords=false|use_acceleration=true",
    "maximum_distance": 1000000000,
    "elevation": true,
    "maximum_snapping_radius": 1000000000,
    "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": {},
      "HeavyVehicle": {},
      "WaySurfaceType": {},
      "RoadAccessRestrictions": {
        "use_for_warnings": true
      }
    }
  }
}

Ngā mihi,
Mak

Hi @makalakalak,

could you please provide a reproducible example (API request) for this?
I don’t get a route when using the successful coordinates with the car profile.

We can’t support you with running ors as a Java Library.

Best regards