I am looking for a tool or query to split the OSM highways into multiple segments. Each segment should only consist of two nodes (start and end).
I should do the same as described in this GIS Stackexchange answer but with PostGIS.
Is there an importing tool like osm2po that I can do this with? Note I don't only want to split it at intersections.
Or alternatively, how could I use ST_Split() or ST_Dump() to do this?