0

Is there any way to find out what direction a road/way runs in from the OSM data file? I have read about oneway being equal to 0,1 and -1 but it doesn't look like all the ways have the "oneway" tag associated with them.

Thanks!

1 Answer 1

0

If the oneway tag is missing then the way is simply no oneway but can be used in both directions.

The direction of a way is defined by its nodes. It always runs from the first to the last node. Except if oneway=-1 is present. Then it is the other way around, i.e. it runs from the last to the first node.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.