Car_delivery profile ignoring private road

Hi,

I was under the impression that the car_delivery profile allows routing of cars on private roads. However we’ve found a case in Northern Italy where there is a private road (highway: residential & motorcar: private) which it doesn’t use and so creates a slower route.

I’ve tried running this locally using a profile with car_access|block_private=false and it did use the road as expected. So this is more of a clarification on if this is a bug or for clarification on which private roads car_delivery can use.

Here is the road:

Here is the routing request:

{
  "points": [
    [
      11.87126,
      45.40652
    ],
    [
      11.87754,
      45.40899
    ]
  ],
  "snap_preventions": [
    "motorway",
    "ferry",
    "tunnel"
  ],
  "details": [
    "road_class",
    "surface"
  ],
  "profile": "car_delivery",
  "locale": "en",
  "instructions": true,
  "calc_points": true,
  "points_encoded": false
}

Interesting. No idea. Will debug it.

There is a turn restriction: Relation: 2708546 | OpenStreetMap that forbids the straight turn.

I’ve tried running this locally using a profile with car_access|block_private=false

You can enable turn restrictions via:

  profiles:
    - name: car
      turn_costs:
        vehicle_types: [ motorcar, motor_vehicle ]
        u_turn_costs: 1800
      ...

And you should be able to reproduce this issue.

Great, thank you for looking into it :pray: