routing
routing copied to clipboard
Debugging lua
I'm trying to improve directions instructions. As far as I understood, most work is done in the luas, which seems to be a pain working with.
Is there a way do debug luas at runtime? Break and inspect values?
Optional we could override vehicle class like described here. But which vehicle is actually overridden? Car? Bike? And it seems that the instruction_generators is still not accessible?
In the luas there is a itinero.log function, that's about it for debugging features I'm afraid.
As for the instructions you should also still be able to do that in C#, let me check.
You should be able to use this one:
https://github.com/itinero/routing/blob/develop/src/Itinero/Navigation/Instructions/UnimodalInstructionGenerator.cs
But there is currently no default implement I'm afraid.
I will try it, thanks. But first and most important is #243. The route itself must be correct and we must also be able to adapt parameters in a predictable way.