Skip to content

Commit fb6b307

Browse files
authored
Merge pull request #6 from danylaksono/placements
Placements
2 parents 0dcb6c1 + d78801d commit fb6b307

File tree

3 files changed

+99
-4
lines changed

3 files changed

+99
-4
lines changed

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
permissions:
99
contents: read
1010
id-token: write
11+
packages: write
1112

1213
jobs:
1314
publish:
@@ -26,6 +27,9 @@ jobs:
2627
- name: Install dependencies
2728
run: npm ci
2829

30+
- name: Cache npm token
31+
run: echo "NODE_AUTH_TOKEN=${{ secrets.NPM_TOKEN }}" >> $GITHUB_ENV
32+
2933
- name: Build
3034
run: npm run build
3135

@@ -35,8 +39,8 @@ jobs:
3539
const fs = require('fs');
3640
const pkgPath = './package.json';
3741
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
38-
const coreVersion = pkg.version.split('+')[0];
39-
pkg.version = `${coreVersion}+build.${process.env.GITHUB_RUN_NUMBER}`;
42+
const coreVersion = pkg.version.split('-')[0];
43+
pkg.version = `${coreVersion}-${process.env.GITHUB_RUN_NUMBER}`;
4044
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
4145
EOF
4246
@@ -55,8 +59,6 @@ jobs:
5559
5660
- name: Publish to npm
5761
if: steps.versions.outputs.publish == 'true'
58-
env:
59-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6062
run: |
6163
npm publish --access public --provenance
6264

examples/data/public_transport_accessibility.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# The Public Transport Accessibility data
2+
3+
The Public Transport Accessibility data represent accessibility to select amenities in the UK at LSOA level. See Verduzco et. al. (2024) for details on the dataset.
4+
5+
<table>
6+
<thead>
7+
<tr>
8+
<th>File</th>
9+
<th>Measure</th>
10+
<th>Description</th>
11+
</tr>
12+
</thead>
13+
<tbody>
14+
<tr>
15+
<th colspan="3" style="text-align: left; background-color: #f2f2f2;">Education: Primary schools and secondary schools</th>
16+
</tr>
17+
<tr>
18+
<td>schools/access_school_pt.csv</td>
19+
<td>Cumulative: time cut 15, 30, 45, 60, 75, 90, 105, 120</td>
20+
<td>Number of primary schools within N minutes by public transport</td>
21+
</tr>
22+
<tr>
23+
<td>schools/access_school_pt.csv</td>
24+
<td>Relative cumulative: time cut 15, 30, 45, 60, 75, 90, 105, 120</td>
25+
<td>Number of primary schools within N minutes by public transport divided by the total primary schools in Great Britain</td>
26+
</tr>
27+
<tr>
28+
<td>schools/access_school_pt.csv</td>
29+
<td>Minimum travel time</td>
30+
<td>Travel time in minutes to the closest primary school</td>
31+
</tr>
32+
<tr>
33+
<td>schools/access_school_pt.csv</td>
34+
<td>Cumulative: time cut 15, 30, 45, 60, 75, 90, 105, 120</td>
35+
<td>Number of secondary schools within N minutes by public transport</td>
36+
</tr>
37+
<tr>
38+
<td>schools/access_school_pt.csv</td>
39+
<td>Relative cumulative: time cut 15, 30, 45, 60, 75, 90, 105, 120</td>
40+
<td>Number of secondary schools within N minutes by public transport divided by the total secondary schools in Great Britain</td>
41+
</tr>
42+
<tr>
43+
<td>schools/access_school_pt.csv</td>
44+
<td>Minimum travel time</td>
45+
<td>Travel time in minutes to the closest secondary school</td>
46+
</tr>
47+
<tr>
48+
<th colspan="3" style="text-align: left; background-color: #f2f2f2;">Urban centre: city and greater city</th>
49+
</tr>
50+
<tr>
51+
<td>urban_centre/access_cities_pt.csv</td>
52+
<td>Minimum travel time</td>
53+
<td>Travel time in minutes to the closest city</td>
54+
</tr>
55+
<tr>
56+
<td>urban_centre/access_cities_pt.csv</td>
57+
<td>Minimum travel time</td>
58+
<td>Travel time in minutes to the closes greater city</td>
59+
</tr>
60+
<tr>
61+
<th colspan="3" style="text-align: left; background-color: #f2f2f2;">Supermarkets</th>
62+
</tr>
63+
<tr>
64+
<td>supermarket/access_supermaet_pt.csv</td>
65+
<td>Cumulative: time cut 15, 30, 45, 60, 75, 90, 105, 120</td>
66+
<td>Number of supermarkets within N minutes by public transport</td>
67+
</tr>
68+
<tr>
69+
<td>supermarket/access_supermaet_pt.csv</td>
70+
<td>Relative cumulative: time cut 15, 30, 45, 60, 75, 90, 105, 120</td>
71+
<td>Number of supermarkets within N minutes by public transport divided by the total number of supermarkets in Great Britain</td>
72+
</tr>
73+
<tr>
74+
<td>supermarket/access_supermaet_pt.csv</td>
75+
<td>Minimum travel time</td>
76+
<td>Travel time in minutes to the closes supermarket</td>
77+
</tr>
78+
</tbody>
79+
</table>
80+
81+
82+
83+
We exclude urban accessibilities, as it lacks the time cut attributes. We further processed the data as follow:
84+
85+
```
86+
key_data = Array(6) ["employment", "supermarket", "school_primary", "school_secondary", "gp", "hospitals"]
87+
minutes = Array(8) [15, 30, 45, 60, 75, 90, 105, 120]
88+
```
89+
90+
The `pct` in the variable denotes percentage of the dataset normalised to the global data in the UK. We filter the data to only use columns with percentage values, and exclude the raw data. This might be changed in the future depending on the visualisation requirements.
91+
92+
The final data is combined with LSOA boundaries.

0 commit comments

Comments
 (0)