I’m currently implementing a reverse geocoder from scratch and am using a local PostGIS database on my machine to run all of my queries. Please note that I do not want to use an API (Overpass, Nominatim, etc.). Right now, I’m able to successfully retrieve the street name, city, and county when given a location’s longitude and latitude coordinates. My next goal is to now figure out how to find the direction of the given location.
I understand that OSM includes docs on direction (Forward & backward, left & right - OpenStreetMap Wiki), but where is this located within the OSM data itself? I only see a column for oneway (yes, no, null), highway, and tags (number of lanes, speed, etc.). To be specific, I want to know if a point on a non-oneway road is heading forward/backard and if it is on the left/right side.