routing icon indicating copy to clipboard operation
routing copied to clipboard

Debugging lua

Open TomQv opened this issue 5 years ago • 3 comments

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?

TomQv avatar Mar 07 '19 09:03 TomQv

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.

xivk avatar Mar 08 '19 13:03 xivk

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.

xivk avatar Mar 08 '19 13:03 xivk

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.

TomQv avatar Mar 09 '19 07:03 TomQv