Why not ask your question on the new OpenStreetMap Community Forum?

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 06 Feb '17, 02:29

Brian%20Vogelgesang's gravatar image

Brian Vogelg...
accept rate: 0%


What about bends, u-turns or roundabouts?

(06 Feb '17, 07:55) scai ♦

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

(06 Feb '17, 17:15) Brian Vogelg...
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 06 Feb '17, 02:29

question was seen: 1,224 times

last updated: 06 Feb '17, 17:15

powered by OSQA