I have a postgres database with OSM data imported in it using osmosis. The import process created a ways table that has the following columns:
id | version | user_id | tstamp | changeset_id | tags | nodes | linestring
The tags column contains all the OSM tags on that specific way, including the highway=* tag. The nodes column constains all the OSM nodes that are part of that way.
I'm interested in finding all the nodes that are basically the intersection node between a highway=primary and highway=secondary, for example, or whatever highway-highway combination.
How can I make use of the tags and nodes columns?