Treat roundabouts as one-way

This commit is contained in:
Mattéo Delabre 2020-01-13 18:28:52 +01:00
parent cf43daf731
commit bbc1e89aa9
Signed by: matteo
GPG Key ID: AE3FBD02DC583ABB
1 changed files with 7 additions and 1 deletions

View File

@ -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
);