Update network with alternate routes
This commit is contained in:
parent
476a0787a1
commit
18c8465548
|
@ -274,6 +274,7 @@ ${util.joinSentence(Array.from(candidate.directions), ', ', ' or ')}
|
||||||
for (let route of rawRoutes)
|
for (let route of rawRoutes)
|
||||||
{
|
{
|
||||||
const {from, to, name} = route.tags;
|
const {from, to, name} = route.tags;
|
||||||
|
const state = route.tags.state || 'normal';
|
||||||
|
|
||||||
// Check that the route consists of a block of stops and platforms
|
// Check that the route consists of a block of stops and platforms
|
||||||
// followed by a block of routes as dictated by PTv2
|
// 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({
|
routes.push({
|
||||||
from, to, name,
|
from, to,
|
||||||
|
name, state,
|
||||||
stops: stops.map(id => elements[id].tags.ref),
|
stops: stops.map(id => elements[id].tags.ref),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
2970
src/tam/network.json
2970
src/tam/network.json
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue