I am writing a code that performs a custom routing on the sql relation generated by osm2po. Amongst several other things, I need to detect if the selected route (list of ids) passes through one or more toll booths, and then display them on the map.
I have a table that contains the list of nodes that are toll booths with their corresponding osm id, and I would like to go through the list of ways in the generated route while matching the start and end nodes.
Unfortunately, this doesn't work in all cases since some toll nodes are removed (joined) by osm2po. Therefore, is there a way to prevent osm2po from joining ways, at least in the case of toll nodes?