What would be the best way to find the orientation of a Road (e.g., North-south or northeast-southwest) I'm working with OSM data from the API and have all of the coordinates of the road. I'm able to plot these coordinates into an x,y value. I was thinking of taking the first point and last point of the road, calculating the slope of the line, and using that to somehow gauge which what the orientation is Any help appreciated!!
asked
Brian Vogelg... |

What about bends, u-turns or roundabouts?

@scai I'm only labeling roads that intersect with the bounding box and are of a certain distance, which rules out roundabouts..etc