Route planning for HGV trough tunnel Mont Blanc

Hello,

While testing ORS, we noticed that when planning route for HGV, the algorithm tries to avoid the Mont Blanc Tunnel by any means. Even if we set multiple of waypoints to route through the tunnel, it still tries to avoid it. Why could this be happening?

Request example:

  curl -X POST \
  'https://api.openrouteservice.org/v2/directions/driving-hgv' \
  -H 'Content-Type: application/json; charset=utf-8' \
  -H 'Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8' \
  -d '{
  "coordinates":[[4.39567,51.26725],[6.394520000000001,46.066660000000006],[6.903845,45.862463],[7.05435,45.745580000000004],[7.785590000000001,45.18854],[8.794213,45.571546]],
  "options": {
    "avoid_features": [ ],
    "profile_params": {
      "restrictions": {
        "length": 17.0,
        "width": 2.5,
        "height": 4.0,
        "axleload": 11.5,
        "weight": 40.0,
        "hazmat": false
      }
    }
  },
  "extra_info": [],
  "maneuvers": false,
  "instructions": false,
  "geometry": true
}'


Hi @matasku,

seems to be a bug in our API where hazmat:no ways are wrongly excluded.
You can track the progress for a fix in this issue

Best regards

3 Likes

Fixed via #1853 :tada: