Update network with alternate routes

This commit is contained in:
Mattéo Delabre 2020-07-22 19:02:43 +02:00
parent 476a0787a1
commit 18c8465548
Signed by: matteo
GPG Key ID: AE3FBD02DC583ABB
2 changed files with 2160 additions and 814 deletions

View File

@ -274,6 +274,7 @@ ${util.joinSentence(Array.from(candidate.directions), ', ', ' or ')}
for (let route of rawRoutes)
{
const {from, to, name} = route.tags;
const state = route.tags.state || 'normal';
// Check that the route consists of a block of stops and platforms
// followed by a block of routes as dictated by PTv2
@ -425,7 +426,8 @@ different sequence of nodes in two or more lines.`);
}
routes.push({
from, to, name,
from, to,
name, state,
stops: stops.map(id => elements[id].tags.ref),
});
}

File diff suppressed because it is too large Load Diff