diff --git a/back/data.js b/back/data.js index 3eab080..f7275a5 100644 --- a/back/data.js +++ b/back/data.js @@ -79,8 +79,14 @@ out body qt; for (let id of rawWays) { const {type, nodes, tags} = elements[id]; + + const isOneWay = ( + tags.oneway === 'yes' + || tags.junction === 'roundabout' + ); + const canGoBackward = ( - tags.oneway !== 'yes' + !isOneWay || parseInt(tags['lanes:psv:backward'], 10) > 0 );