Unexpected error when providing street hint

Hello,

When optimising the following request:

{
	"configuration": {
		"routing": {
			"calc_points": true,
			"consider_traffic": false,
			"network_data_provider": "openstreetmap",
			"return_snapped_waypoints": true,
			"snap_preventions": [
				"motorway",
				"tunnel",
				"ferry"
			]
		}
	},
	"objectives": [
		{
			"type": "min-max",
			"value": "completion_time"
		},
		{
			"type": "min-max",
			"value": "activities"
		}
	],
	"services": [
		{
			"address": {
				"lat": 39.235443,
				"location_id": "LmhvetBRitVMKuXny7iW",
				"lon": -84.37659500000001,
				"street_hint": "Kenwood Road"
			},
			"duration": 300,
			"group": "medium",
			"id": "LmhvetBRitVMKuXny7iW",
			"time_windows": []
		}
	],
	"vehicle_types": [
		{
			"profile": "car",
			"speed_factor": 1,
			"type_id": "vhc_nEwVByRRHTYpXl3tPniq8eQlMU63"
		}
	],
	"vehicles": [
		{
			"earliest_start": 1634580476,
			"start_address": {
				"curbside": "right",
				"lat": 39.108645,
				"location_id": "OJWzAcQs4SxVmyjK2LUr",
				"lon": -84.5331696
			},
			"type_id": "vhc_nEwVByRRHTYpXl3tPniq8eQlMU63",
			"vehicle_id": "nEwVByRRHTYpXl3tPniq8eQlMU63"
		}
	]
}

The optimization fails, and returns an unexpected error:

{
  "message": "Cannot retrieve costs from matrix service",
  "hints": [
    {
      "message": "Pillar node of adjacent edge matches snapped point, this should not happen",
      "details": "class com.graphhopper.util.exceptions.DetailedIllegalArgumentException"
    }
  ],
  "status": "finished"
}

When the street_hint for the service isn’t provided then the optimization runs fine.

Thanks for your help,
Sam

This should not happen indeed. Thanks for your report. We will fix this.

We fixed this now. Can you try again?

2 Likes

Looks good now, thanks for your help!

1 Like
Powered by Discourse