I have a feeling this is not possible, but I am looking to get information on the nodes which are part of a line in the planet_osm_line table.
The issue which I am trying to handle is I am trying to map out train routes, which I can identify through the "route=train" tag in the planet_osm_line table.
However, I want to identify the train stops. Nodes which indicate a train stop are marked "railway=station" tag in the planet_osm_point table.
I'm looking for a way to associate a train stop, or nodes in general, in the planet_osm_point table to the train route, or any way in general, in the planet_osm_line table.
As a final note, I am working through SQLAlchemy, but I have a feeling that is not important to this particular problem.