VROOM-Project / vroom

Vehicle Routing Open-source Optimization Machine
http://vroom-project.org/
BSD 2-Clause "Simplified" License
1.34k stars 336 forks source link

Resolving the Costing Method Error in VROOM When Using Valhalla for Routing #1168

Open AlirezaAzizi14 opened 3 days ago

AlirezaAzizi14 commented 3 days ago

Hello, good day!

I have compiled and built VROOM, and I'm using the following command to send a request to VROOM: ./bin/vroom -r valhalla -a valhalla1.openstreetmap.de/isochrone -p 80 -i dataUser.json

I want to use Valhalla for routing. However, when I send the request to VROOM, I encounter this error: [Error] Valhalla matrix error (No costing method found: 'car'). {"code":3,"error":"Valhalla matrix error (No costing method found: 'car')."}

From what I understand, it seems like a costing method is not being sent to Valhalla, which is why this error occurs.

What solution would you suggest for this issue? How can I specify a costing method for Valhalla in the input data?

jcoupey commented 2 days ago

You're hitting valhalla1.openstreetmap.de/isochrone which is intended to compute isochrones, not matrices. Probably we simply can't make sense of the response because we expect to retrieve matrices from Valhalla.