feat(junction): project advanced facilities and associations
This commit is contained in:
1 parent
61ae90352a
commit
0065c3eaec
9 files changed
+111
-3
No files matched your search
@@ -47,6 +47,20 @@ const structure = projectJunctionStructure({
|
||||
type: 'FeatureCollection',
|
||||
features: [{ type: 'Feature', properties: { native_id: 'stop-line:north' }, geometry: null }],
|
||||
},
|
||||
islands: {
|
||||
type: 'FeatureCollection',
|
||||
features: [{ type: 'Feature', properties: { kind: 'island', native_id: 'island:north' }, geometry: null }],
|
||||
},
|
||||
medians: {
|
||||
type: 'FeatureCollection',
|
||||
features: [{ type: 'Feature', properties: { kind: 'median', native_id: 'median:center' }, geometry: null }],
|
||||
},
|
||||
sidewalkTurns: {
|
||||
type: 'FeatureCollection',
|
||||
features: [
|
||||
{ type: 'Feature', properties: { kind: 'sidewalk-turn', native_id: 'sidewalk-turn:east' }, geometry: null },
|
||||
],
|
||||
},
|
||||
intersectionSurface: { type: 'FeatureCollection', features: [] },
|
||||
},
|
||||
trafficSignals: {
|
||||
@@ -64,10 +78,12 @@ assert.deepEqual(
|
||||
['北环路', '东环路'],
|
||||
);
|
||||
assert.equal(structure.arms[1].directionality, 'one-way');
|
||||
assert.equal(structure.arms[0].pedestrian.connected, false);
|
||||
assert.equal(structure.arms[1].pedestrian.bicycleConnected, false);
|
||||
assert.equal(structure.corners.length, 2);
|
||||
assert.deepEqual(
|
||||
structure.facilities.map((facility) => facility.kind),
|
||||
['crossing', 'stop-line', 'signal'],
|
||||
['crossing', 'stop-line', 'signal', 'island', 'median', 'sidewalk-turn'],
|
||||
);
|
||||
|
||||
const diagnostics = standardsDiagnostics(structure);
|
||||
|
||||
Reference in new issue
Block a user