routing icon indicating copy to clipboard operation
routing copied to clipboard

Modifying lua access_values is ignored

Open TomQv opened this issue 6 years ago • 5 comments

I modified car.lua and changed in access_values ["destination"] from true to false. But its ignored.

The following route ( from N 50,04559° O 8,92986° to N 50,05547° O 8,88755°) still takes a road marked with access=destination. This is just a service-exit from highway A3 and closed for public use.

https://www.openstreetmap.org/way/60914768#map=19/50.05539/8.91121

Where am I wrong?

TomQv avatar Mar 07 '19 08:03 TomQv

Can you share the actual lua file you are using?

xivk avatar Mar 09 '19 13:03 xivk

of course

TomQv avatar Mar 09 '19 13:03 TomQv

car.zip

TomQv avatar Mar 09 '19 13:03 TomQv

Is this a bug in the lua? Then I can check myself maybe.

TomQv avatar Mar 13 '19 09:03 TomQv

That would be my guess, but in any issue the first step is reproducing it, that's why I asked for the exact profile.

What I'm going to do first to debug this:

  • write part of the routerdb to geojson open in QGIS and see what's in there. That could give an idea on what is going wrong. You can use this: https://github.com/itinero/routing/blob/develop/src/Itinero/RouterDbExtensions.cs#L1020
  • check and make sure that all attributes you are using in the profile are in the result.attributes_to_keep dictionary.

xivk avatar Mar 13 '19 10:03 xivk