-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.html
More file actions
508 lines (467 loc) · 26.1 KB
/
index.html
File metadata and controls
508 lines (467 loc) · 26.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="Description" content="Network Planning Tool for Scotland: A web application for strategic cycle network planning across Scotland">
<!-- Favicon -->
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Social media -->
<meta property="og:title" content="NPT Scotland">
<meta property="og:description" content="Network Planning Tool for Scotland: A web application for strategic cycle network planning across Scotland">
<meta property="og:image" content="/images/thumbnail.jpg">
<meta property="twitter:image" content="/images/thumbnail.jpg">
<meta property="og:url" content="https://www.npt.scot">
<meta name="twitter:card" content="summary_large_image">
<meta property="og:site_name" content="NPT Scotland">
<meta name="twitter:image:alt" content="NPT Scotland thumbnail">
<title>NPT Scotland</title>
<!-- PWA support -->
<link rel="manifest" href="manifest.webmanifest">
<link rel="apple-touch-icon" href="/images/icons/192.png">
<meta name="apple-mobile-web-app-status-bar" content="#0b38e6">
<meta name="theme-color" content="#0b38e6">
<script src="/app.js" defer></script>
<!-- Map dependencies -->
<script src="https://unpkg.com/pmtiles@3.0.6/dist/pmtiles.js"></script>
<script src="/js/lib/geocoder/maplibre-gl-geocoder.min.js"></script>
<link rel="stylesheet" href="js/lib/geocoder/maplibre-gl-geocoder-small.css" type="text/css"/>
<script src="https://unpkg.com/maplibre-gl@4.5.0/dist/maplibre-gl.js"></script>
<link href="https://unpkg.com/maplibre-gl@4.5.0/dist/maplibre-gl.css" rel="stylesheet" />
<!-- Sliders -->
<link href="js/lib/noUiSlider_15_7_0/nouislider.min.css" rel="stylesheet">
<script src="js/lib/noUiSlider_15_7_0/nouislider.min.js"></script>
<!-- Font Awesome -->
<link href="/assets/fontawesome/css/fontawesome.css" rel="stylesheet">
<link href="/assets/fontawesome/css/solid.min.css" rel="stylesheet">
<!-- Markdown conversion -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/2.1.0/showdown.min.js"></script>
<!-- Tooltips -->
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
<!-- Charts -->
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1" defer></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QZMHV92YXJ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag () {dataLayer.push (arguments);}
gtag('js', new Date ());
gtag('config', 'G-QZMHV92YXJ');
</script>
<!-- Styles -->
<link rel="stylesheet" href="css/main.css">
<!-- NPT application -->
<script src="src/settings.js"></script>
<script src="src/datasets.js"></script>
<!-- src/build.json will also be loaded, as a required file -->
<script src="src/nptui.js"></script>
<script>
document.addEventListener ('DOMContentLoaded', function () {
nptUi.initialise (settings, datasets);
});
</script>
</head>
<body>
<!-- Menu -->
<nav>
<a href="/" class="selected"><img src="/images/npt_logo.png" alt="NPT Logo" class="logo" /> NPT Scotland <span id="betabanner">beta</span></a>
<a href="https://npw.scot/">Plan network</a>
<a href="/about/">About</a>
<a href="/data/">Data</a>
<a href="/manual/">Manual</a>
<a href="#" id="expandtopnav" class="icon" aria-label="Expand menu"><i class="fa fa-bars"></i></a>
</nav>
<!-- Welcome splash -->
<div id="welcome-modal" class="modal">
<span class="modal-close">×</span>
<div>
<h3>Network Planning Tool for Scotland – Public BETA</h3>
<p>The Network Planning Tool for Scotland is a web-based application designed to support strategic cycle network planning and investment decisions, primarily for use by local authorities.</p>
<p>This tool utilises various datasets, some of which have limitations. Users should always verify outputs against the most up to date geospatial data held by the local authority before proceeding with detailed design or investment decisions.</p>
<p>Please note that the commute layer results are based on 2011 Census data, and other trip purpose results are based on pre-pandemic data. These model-based estimates may not reflect current patterns which have changed since the pandemic.</p>
<p>Users are solely responsible for how they interpret and use the data. If you identify any errors or have concerns about the data or tool, please use the feedback form to report or provide feedback.</p>
<!-- TODO: update to the latest commit month when deploying -->
<p>Mapping data: Date of OSM data on which network results are based: <span class="osmupdatedate"></span>.<br />Tool last updated: July 2025.</p>
<!-- Next bit no longer needed as the UI is stable: -->
<!-- You may need to <a href="https://www.minitool.com/news/f5-vs-ctrl-f5.html" target="_blank">refresh your browser</a> to see the latest updates.</p> -->
<p>For more information on limitations, see the <a href="https://npw.scot/manual#known-limitations" target="_blank">NPW manual</a>.</p>
<p>
Found an issue or have a suggestion? <a href="https://github.com/nptscot/nptscot.github.io/issues" target="_blank">Report it on GitHub</a> or use our <a href="https://forms.office.com/Pages/ResponsePage.aspx?id=qO3qvR3IzkWGPlIypTW3ywVZfmO0bwdAhK0UztpneQtUM1pCRlJQQjY1V0M3MUhBV0g0VTJRS1ZQVi4u" target="_blank">feedback form</a>.
</p>
<p id="logos">
<a href="https://www.transport.gov.scot/" target="_blank"><img src="/images/logos/transportscotland.svg" alt="Transport Scotland" /></a>
<a href="https://www.sustrans.org.uk/about-us/our-work-in-scotland" target="_blank"><img src="/images/logos/sustrans.png" alt="Sustrans" /></a>
<a href="https://environment.leeds.ac.uk/transport" target="_blank"><img src="/images/logos/leeds.png" alt="University of Leeds" /></a>
<a href="https://www.cyclestreets.org/" target="_blank"><img src="/images/logos/cyclestreets.svg" alt="CycleStreets" /></a>
<a href="https://abstreet.uk/" target="_blank"><img src="/images/abstreet-logo.svg" alt="A/B Street" /></a>
</p>
</div>
</div>
<!-- Cookies Warning -->
<div id="cookiewarning" class="cookiewarning">
<p>We use cookies to measure how you use our website so we can understand how you interact with it, which helps us to make improvements. <a href="/privacy/">Find out more.</a></p>
<p>
<button class="button button1" value="1"><strong>OK</strong></button>
<button class="button button2" value=""><strong>No</strong></button>
</p>
</div>
<!-- Main Content -->
<div class="content">
<div id="map"></div>
</div>
<!-- Basemap control box -->
<div id="basemapcontrol">
<h3>Basemap</h3>
<form id="basemapform">
<!-- Values will be populated -->
</form>
<p><label class="switch"><input type="checkbox" id="placenamescheckbox" checked="checked" /><span class="slider round"></span></label> Place names</p>
<p title="Makes the map look smoother and clearer (not suitable for lower-powered devices)"><label class="switch"><input type="checkbox" id="antialiascheckbox" /><span class="slider round"></span></label> Anti-alias</p>
</div>
<!-- Show Layer Selection Panel Button-->
<div id="showrightbox" class="showrightbox">
<button class="float_button" aria-label="Show layers"><i class="fa fa-bars"></i></button>
</div>
<!-- Layer Selection Panel -->
<div id="rightbox" class="rightbox">
<button class="close-button" aria-label="Hide layers"><i class="fas fa-times"></i></button>
<h2>Layer controls</h2>
<button class="accordion">Route network</button>
<div class="panel">
<p>
<label><input type="checkbox" id="rnetcheckboxproxy" class="rnetproxy" data-proxy="true" checked="checked" /> Show layer</label>
<!-- These two checkboxes actually control the layers, but are set by the show/simplified checkboxes -->
<input type="checkbox" class="showlayer hidden" data-layer="rnet" />
<input type="checkbox" class="showlayer hidden" data-layer="rnet-simplified" />
</p>
<div class="layertools layertools-rnet layertools-rnet-simplified">
<p><label class="switch"><input type="checkbox" id="rnet-simplifiedcheckboxproxy" class="rnetproxy" data-proxy="true" aria-label="Simplify route network"><span class="slider round"></span></label> Simplified route network <button aria-label="Help simplified route network" class="helpbutton" data-help="simplified_rnet" title="Full details of streamlining the route network"><i class="fa fa-question-circle" aria-hidden="true"></i></button></p>
<p>
<select name="purpose" class="updatelayer" data-layer="rnet" aria-label="Route network trip purpose">
<option value="all" selected>All</option>
<option value="commute">Commute</option>
<option value="primary">Primary School</option>
<option value="secondary">Secondary School</option>
<option value="utility">Other Everyday</option>
</select>
Trip purpose <button aria-label="Help purpose" class="helpbutton" title="Full details of trip purpose" data-help="purpose"><i class="fa fa-question-circle" aria-hidden="true"></i></button>
</p>
<p>
<select name="scenario" class="updatelayer" data-layer="rnet" aria-label="Route network scenario">
<option value="bicycle">Baseline</option>
<option value="bicycle_go_dutch" selected>Go Dutch</option>
<option value="bicycle_ebike">Ebike</option>
</select>
Scenario <button aria-label="Help scenario" class="helpbutton" data-help="scenario" title="Full details of scenarios"><i class="fa fa-question-circle" aria-hidden="true"></i></button>
</p>
<p>
<select name="type" class="updatelayer" data-layer="rnet" aria-label="Route network type">
<option value="fastest" selected>Fast/Direct</option>
<option value="quietest">Quiet/Indirect</option>
</select>
Network type <button aria-label="Help type" class="helpbutton" data-help="type" title="Full details of type of network choice by people cycling"><i class="fa fa-question-circle" aria-hidden="true"></i></button>
</p>
<p>
<select name="colour" class="updatelayer sublayerselector-rnet sublayerselector-rnet-simplified" data-layer="rnet" aria-label="Route network colour">
<option value="none">None</option>
<option value="flow" selected>Cycle trips per day</option>
<option value="quietness">Cycle friendliness</option>
<option value="gradient">Gradient</option>
</select>
Line colour <button aria-label="Help colour" class="helpbutton" data-help="colour" title="Full details of colouring of route lines"><i class="fa fa-question-circle" aria-hidden="true"></i></button>
</p>
<div class="legend nonfilterable" id="legend-rnet"></div>
<p><b>Filter to:</b><button aria-label="Help scenario" class="helpbutton" data-help="filters" title="Full details of filtering parts of the route network"><i class="fa fa-question-circle" aria-hidden="true"></i></button></p>
<table class="filters">
<tr>
<td>Cycle trips per day</td>
<td>
<div id="slider-cycle-ui" class="slider-styled" data-name="cycle"></div>
<datalist list="slider-cycle-ui" data-density="3">
<option value="0" data-position="min"></option>
<option value="100" data-position="12.5%"></option>
<option value="200" data-position="25%"></option>
<option value="500" data-position="37.5%"></option>
<option value="1000" data-position="50%" data-label="1k"></option>
<option value="2500" data-position="62.5%" data-label="2.5k"></option>
<option value="5000" data-position="75%" data-label="5k"></option>
<option value="10000" data-position="87.5%" data-label="10k"></option>
<option value="20000" data-position="max" data-label="20k"></option>
<!-- TODO: Check max value -->
</datalist>
<input type="hidden" name="cycle" class="updatelayer slider" data-layer="rnet" value="0-20000" />
</td>
</tr>
<tr>
<td>Gradient (%)</td>
<td>
<div id="slider-gradient-ui" class="slider-styled" data-name="gradient"></div>
<datalist list="slider-gradient-ui" data-density="10">
<option value="0" data-position="min" data-increments="1"></option>
<option value="2" data-position="20%" data-increments="1"></option>
<option value="4" data-position="40%" data-increments="1"></option>
<option value="6" data-position="60%" data-increments="1"></option>
<option value="8" data-position="80%" data-increments="1"></option>
<option value="100" data-position="max" data-label="10+"></option>
</datalist>
<input type="hidden" name="gradient" class="updatelayer slider" data-layer="rnet" value="0-100" />
</td>
</tr>
<tr>
<td>Cycle friendliness (%)</td>
<td>
<div id="slider-quietness-ui" class="slider-styled" data-name="quietness"></div>
<datalist list="slider-quietness-ui" data-density="10">
<option value="0" data-position="min" data-label="Hostile" data-increments="10"></option>
<option value="100" data-position="max" data-label="Quiet"></option>
</datalist>
<input type="hidden" name="quietness" class="updatelayer slider" data-layer="rnet" value="0-100" />
</td>
</tr>
</table>
</div>
</div>
<button class="accordion">Coherent network</button>
<div class="panel">
<p><label><input type="checkbox" class="showlayer" data-layer="coherentnetwork" value="false"> Show layer</label></p>
<p>Automatically-generated coherent network in urban areas connecting key origins and destinations with relatively direct routes. <button aria-label="Help on coherent network" class="helpbutton" data-help="coherentnetwork"><i class="fa fa-question-circle" aria-hidden="true"></i></button></p>
<div class="layertools layertools-coherentnetwork">
<div class="legend" id="legend-coherentnetwork"></div>
</div>
</div>
<button class="accordion">Existing cycle network quality</button>
<div class="panel">
<p><label><input type="checkbox" class="showlayer" data-layer="clos" value="false"> Show layer</label></p>
<p>Data on existing infrastructure, speed limits, volumes and estimated Cycling Level of Service (LoS), as per the <a href="https://www.transport.gov.scot/media/50323/cycling-by-design-update-2019-final-document-15-september-2021-1.pdf" target="_blank" title="[Link opens in a new window]">Cycling by Design guidance</a>. <button aria-label="Help on LoS" class="helpbutton" data-help="clos"><i class="fa fa-question-circle" aria-hidden="true"></i></button></p>
<div class="layertools layertools-clos">
<p>
<select name="clos-layer" class="updatelayer sublayerselector-clos" data-layer="clos" aria-label="LoS detail">
<option value="Level of Service" selected="selected">Level of service</option>
<option value="Traffic volume category">Estimated traffic volume (AADT)</option>
<option value="Speed limit">Speed limit</option>
<option value="Infrastructure type">Cycle infrastructure</option>
</select>
</p>
<div class="legend" id="legend-clos"></div>
<p>Cycle infrastructure types info <button aria-label="Help on cycle infrastructure types info" class="helpbutton" data-help="infrastructuretypes"><i class="fa fa-question-circle" aria-hidden="true"></i></button></p>
</div>
</div>
<button class="accordion">Street space evaluation</button>
<div class="panel">
<p><label><input type="checkbox" class="showlayer" data-layer="streetspace" value="false"> Show layer</label></p>
<p>This layer allows at-a-glance evaluation of the <em>spatial</em> deliverability of segregated cycle infrastructure (on links requiring dedicated infrastructure). <button aria-label="Help on infrastructure scenario" class="helpbutton" data-help="streetspace"><i class="fa fa-question-circle" aria-hidden="true"></i></button></p>
<div class="layertools layertools-streetspace">
<p>Infrastructure scenario:</p>
<p>2x 1-way tracks:<br />
<label><input type="radio" class="updatelayer sublayerselector-streetspace" data-layer="streetspace" name="streetspace" value="carriageway_1way" checked="checked">Within road width</input></label><br />
<label><input type="radio" class="updatelayer sublayerselector-streetspace" data-layer="streetspace" name="streetspace" value="combined_1way">Using edge-to-edge</input></label></p>
<p>2-way track:<br />
<label><input type="radio" class="updatelayer sublayerselector-streetspace" data-layer="streetspace" name="streetspace" value="carriageway_2way">Within road width</input></label><br />
<label><input type="radio" class="updatelayer sublayerselector-streetspace" data-layer="streetspace" name="streetspace" value="combined_2way">Using edge-to-edge</input></label></p>
</p>
<div class="legend" id="legend-streetspace"></div>
</div>
<p class="license">Contains OS data © Crown copyright and database rights 2025 OS licence number 100046668.</p>
</div>
<button class="accordion">Data zones</button>
<div class="panel">
<p><label><input type="checkbox" class="showlayer" data-layer="data_zones" value="false"> Show layer</label></p>
<div class="layertools layertools-data_zones">
<p>
<select name="field" class="updatelayer sublayerselector-data_zones" data-layer="data_zones" aria-label="Data zone layer">
<option value="pcycle">% commuter cycling (baseline)</option>
<option value="pcycle_go_dutch" selected>% commuter cycling (Go Dutch)</option>
<option value="population_density">Population density (per hectare)</option>
<option value="SIMD2020v2_Decile" selected="selected">Scottish Ind. Multiple Deprivation</option>
<option value="drive_petrol">Drive time to petrol station</option>
<option value="drive_GP">Drive time to GP</option>
<option value="drive_post">Drive time to post office</option>
<option value="drive_retail">Drive time to retail centre</option>
<option value="drive_primary">Drive time to primary school</option>
<option value="drive_secondary">Drive time to secondary school</option>
<option value="PT_GP">Public transport time to GP</option>
<option value="PT_post">Public transport time to post office</option>
<option value="PT_retail">Public transport time to retail centre</option>
<option value="broadband">% without superfast broadband</option>
</select>
<button aria-label="Help on data zones" class="helpbutton" data-help="data_zones"><i class="fa fa-question-circle" aria-hidden="true"></i></button>
</p>
<div class="legend" id="legend-data_zones"></div>
<p><label class="switch"><input type="checkbox" name="daysymetricmode" class="updatelayer" data-layer="data_zones" checked="checked" /><span class="slider round"></span></label> Dasymetric</p>
</div>
</div>
<button class="accordion">Other layers</button>
<div class="panel">
<p><label><input type="checkbox" class="showlayer" data-layer="busroutes" value="false">Bus routes</label></p>
<div class="layertools layertools-busroutes">
<div class="legend" id="legend-busroutes"></div>
</div>
<p><label><input type="checkbox" class="showlayer" data-layer="schools" value="false">Schools</label></p>
<div class="layertools layertools-schools">
<div class="legend" id="legend-schools"></div>
</div>
<p><label><input type="checkbox" class="showlayer" data-layer="wards" value="false">Wards</label></p>
<div class="layertools layertools-wards">
<div class="legend" id="legend-wards"></div>
</div>
<p><label><input type="checkbox" class="showlayer" data-layer="holyrood" value="false">Scottish Parliament Constituencies</label></p>
<div class="layertools layertools-holyrood">
<div class="legend" id="legend-holyrood"></div>
</div>
<p><label><input type="checkbox" class="showlayer" data-layer="la" value="false">Local Authorities</label></p>
<div class="layertools layertools-la">
<div class="legend" id="legend-la"></div>
</div>
<p><label><input type="checkbox" class="showlayer" data-layer="urbanrural" value="false">Urban/rural boundary</label></p>
<div class="layertools layertools-urbanrural">
<div class="legend" id="legend-urbanrural"></div>
</div>
</div>
</div>
<!-- Help box -->
<div id="help-modal" class="modal">
<span class="modal-close">×</span>
<div id="helpcontent">
<p><em>Help content loading…</em></p>
</div>
</div>
<!-- Template for chart modals, including a sub-template for the chart boxes, plus overlay -->
<template id="chart-modal">
<div class="modal">
<div class="modal-header">
<span class="modal-close">×</span>
<h2 class="modal-title">Summary</h2>
</div>
<div class="modal-body">
<template class="chart-template">
<div class="chart-wrapper">
<div class="chart-text">
<h4 class="chart-title"></h4>
<p class="chart-description"></p>
</div>
<div class="chart-container">
<canvas></canvas>
</div>
</div>
</template>
</div>
</div>
</template>
<div id="overlay"></div>
<!-- Template for map popup -->
<template id="rnet-popup">
<h4 tabindex="0">Route network</h3>
<p>Cyclists: {_ncycle}<br />
Gradient: {gradient}%<br />
Cycle-friendliness: {quietness}%</p>
<p><a class="externallink" target="_blank" href="{_streetViewUrl}">Google Street View <i class="fa fa-external-link" aria-hidden="true"></i></a> <a class="externallink" target="_blank" href="{_osmUrl}">OpenStreetMap <i class="fa fa-external-link" aria-hidden="true"></i></a></p>
<h4>Fast/Direct network</h4>
<table>
<tr><th></th><th>Baseline</th><th>Go Dutch</th><th>Ebikes</th></tr>
<tr><th>All</th><td>{all_fastest_bicycle}</td><td>{all_fastest_bicycle_go_dutch}</td><td>{all_fastest_bicycle_ebike}</td></tr>
<tr><th>Commute</th><td>{commute_fastest_bicycle}</td><td>{commute_fastest_bicycle_go_dutch}</td><td>{commute_fastest_bicycle_ebike}</td></tr>
<tr><th>Primary</th><td>{primary_fastest_bicycle}</td><td>{primary_fastest_bicycle_go_dutch}</td><td>{primary_fastest_bicycle_ebike}</td></tr>
<tr><th>Secondary</th><td>{secondary_fastest_bicycle}</td><td>{secondary_fastest_bicycle_go_dutch}</td><td>{secondary_fastest_bicycle_ebike}</td></tr>
<tr><th>Other Everyday</th><td>{utility_fastest_bicycle}</td><td>{utility_fastest_bicycle_go_dutch}</td><td>{utility_fastest_bicycle_ebike}</td></tr>
</table>
<h4>Quiet/Indirect network</h4>
<table>
<tr><th></th><th>Baseline</th><th>Go Dutch</th><th>Ebikes</th></tr>
<tr><th>All</th><td>{all_quietest_bicycle}</td><td>{all_quietest_bicycle_go_dutch}</td><td>{all_quietest_bicycle_ebike}</td></tr>
<tr><th>Commute</th><td>{commute_quietest_bicycle}</td><td>{commute_quietest_bicycle_go_dutch}</td><td>{commute_quietest_bicycle_ebike}</td></tr>
<tr><th>Primary</th><td>{primary_quietest_bicycle}</td><td>{primary_quietest_bicycle_go_dutch}</td><td>{primary_quietest_bicycle_ebike}</td></tr>
<tr><th>Secondary</th><td>{secondary_quietest_bicycle}</td><td>{secondary_quietest_bicycle_go_dutch}</td><td>{secondary_quietest_bicycle_ebike}</td></tr>
<tr><th>Other Everyday</th><td>{utility_quietest_bicycle}</td><td>{utility_quietest_bicycle_go_dutch}</td><td>{utility_quietest_bicycle_ebike}</td></tr>
</table>
</template>
<!-- Template for map popup -->
<template id="clos-popup">
<h3 tabindex="0">Infrastructure and traffic</h3>
<table>
<tr>
<td>Highway type</td>
<td style="text-transform: capitalize;">{highway}</td>
<tr>
<td>Cycle infrastructure</td>
<td>{Infrastructure type}</td>
</tr>
<tr>
<td>Average daily motor traffic</td>
<td>{Traffic volume category}</td>
</tr>
<tr>
<td>Speed limit</td>
<td>{Speed limit}mph</td>
</tr>
<tr>
<td>Distance to nearest road</td>
<td>{Distance to nearest road}m</td>
</tr>
<tr>
<td>Level of Service</td>
<td><strong>{Level of Service}</strong></td>
</tr>
</table>
<p>
<a class="externallink" target="_blank" href="{_streetViewUrl}">Google Street View <i class="fa fa-external-link" aria-hidden="true"></i></a><br />
<a href="https://www.openstreetmap.org/way/{osm_id}/" target="_blank" title="[Link opens in a new window]">OpenStreetMap Way #{osm_id}</a>
</p>
</template>
<template id="streetspace-popup">
<h3 tabindex="0">Street space</h3>
<table class="left">
<tr>
<td>Road classification:</td>
<td>{road_function}</td>
</tr>
<tr>
<td>Road type:</td>
<td>{road_types}</td>
<tr>
<td>Carriageway width:</td>
<td>{carriageway_width}m</td>
</tr>
<tr>
<td>Edge-to-edge width:</td>
<td>{edge_to_edge_width}m</td>
</tr>
<tr>
<td>Assumed lane widths:</td>
<td>{assumed_lane_widths}</td>
</tr>
<tr>
<td>Is bus route?:</td>
<td>{is_bus_route}</td>
</tr>
<tr>
<td>Number of lanes:</td>
<td>{total_lanes}</td>
</tr>
<tr>
<td>Speed limit:</td>
<td>{speed_limit}</td>
</tr>
<tr>
<td>Required buffer:</td>
<td>{required_buffer}m</td>
</tr>
<tr>
<td>Required width for motor traffic:</td>
<td>{required_width}m</td>
</tr>
</table>
<p><a class="externallink" target="_blank" href="{_streetViewUrl}">Google Street View <i class="fa fa-external-link" aria-hidden="true"></i></a></p>
</template>
<!-- Template for busroutes popup -->
<template id="busroutes-popup">
<h3 tabindex="0">Bus routes</h3>
<p>{name}</p>
<p>
<a class="externallink" target="_blank" href="{_streetViewUrl}">Google Street View <i class="fa fa-external-link" aria-hidden="true"></i></a><br />
<a href="https://www.openstreetmap.org/relation/{osm_id}/" target="_blank" title="[Link opens in a new window]">OpenStreetMap Relation #{osm_id}</a>
</p>
</template>
</body>
</html>