NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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...
16224
accept rate: 0%

2

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...

Follow this question

By Email:

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

By RSS:

Answers

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:

×710
×24

question asked: 06 Feb '17, 02:29

question was seen: 1,382 times

last updated: 06 Feb '17, 17:15

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum