itinero / routing

The routing core of itinero.
Apache License 2.0
221 stars 70 forks source link

Debugging lua #244

Open TomQv opened 5 years ago

TomQv commented 5 years ago

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?

xivk commented 5 years ago

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 commented 5 years ago

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.

TomQv commented 5 years ago

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.