Treat roundabouts as one-way
This commit is contained in:
parent
cf43daf731
commit
bbc1e89aa9
|
@ -79,8 +79,14 @@ out body qt;
|
||||||
for (let id of rawWays)
|
for (let id of rawWays)
|
||||||
{
|
{
|
||||||
const {type, nodes, tags} = elements[id];
|
const {type, nodes, tags} = elements[id];
|
||||||
|
|
||||||
|
const isOneWay = (
|
||||||
|
tags.oneway === 'yes'
|
||||||
|
|| tags.junction === 'roundabout'
|
||||||
|
);
|
||||||
|
|
||||||
const canGoBackward = (
|
const canGoBackward = (
|
||||||
tags.oneway !== 'yes'
|
!isOneWay
|
||||||
|| parseInt(tags['lanes:psv:backward'], 10) > 0
|
|| parseInt(tags['lanes:psv:backward'], 10) > 0
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue