Skip to content

Commit 43071f9

Browse files
committed
Updated Metrolink stops data to latest available: 2022-11-11.
1 parent 4628938 commit 43071f9

6 files changed

Lines changed: 64 additions & 41 deletions

File tree

transport/metrolink/stops/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</tr>
3333
<tr>
3434
<td>Temporal coverage</td>
35-
<td>NA</td>
35+
<td>2022-11-11</td>
3636
</tr>
3737
<tr>
3838
<td>Update frequency</td>
@@ -44,7 +44,7 @@
4444
</tr>
4545
<tr>
4646
<td>Attribution</td>
47-
<td>Contains Transport for Greater Manchester data. Contains OS data © Crown copyright and database right 2018.</td>
47+
<td>Contains Transport for Greater Manchester data. Contains OS data © Crown copyright and database right 2023.</td>
4848
</tr>
4949
<tr>
5050
<td>Format</td>
@@ -56,7 +56,7 @@
5656
</tr>
5757
<tr>
5858
<td>Last updated</td>
59-
<td>Unknown</td>
59+
<td>2023-09-27</td>
6060
</tr>
6161
<tr>
6262
<td>Notes</td>

transport/metrolink/stops/pre-processing.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Publisher URL: https://data.gov.uk/dataset/8faea7ee-eb7d-43dd-b1d4-f01aac4c44d3/metrolink-stops-and-rail-stations
55
# Licence: Open Government Licence 3.0
66

7+
# Data: 2022-11-11
8+
# Last Updated: 2023-09-27
9+
710
# load libraries---------------------------
811
library(tidyverse) ; library(sf)
912

@@ -23,7 +26,7 @@ sf <- df %>%
2326
st_transform(4326)
2427

2528
# load boundary layer ---------------------------
26-
bdy <- st_read("https://github.com/traffordDataLab/spatial_data/raw/master/ward/2017/trafford_ward_full_resolution.geojson") %>%
29+
bdy <- st_read("https://www.trafforddatalab.io/spatial_data/ward/2023/trafford_ward_full_resolution.geojson") %>%
2730
st_as_sf(crs = 4326, coords = c("long", "lat")) %>%
2831
select(area_code, area_name)
2932

transport/metrolink/stops/styling.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
library(tidyverse); library(sf) ; library(geojsonio)
55

66
# read data ---------------------------
7-
geojson <- st_read("http://trafforddatalab.io/open_data/transport/metrolink/stops/trafford_metrolink_stops.geojson")
7+
geojson <- st_read("trafford_metrolink_stops.geojson")
88

99
# apply styles ---------------------------
1010
geojson_styles <- geojson_style(geojson,
Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
name,area_code,area_name,long,lat
2-
Altrincham,E05000819,Altrincham,-2.3472773803000804,53.38743518188233
3-
Brooklands,E05000823,Brooklands,-2.3261088253343813,53.41708537864699
4-
Dane Road,E05000833,Priory,-2.311325036389838,53.43029310165637
5-
Firswood,E05000832,Longford,-2.2777187251438935,53.451274357493034
6-
Navigation Road,E05000819,Altrincham,-2.343329535875281,53.39570714621604
7-
Old Trafford,E05000832,Longford,-2.2845593115458582,53.4564176496119
8-
Pomona,E05000825,Clifford,-2.277960240006187,53.46518799241665
9-
Stretford,E05000832,Longford,-2.3037919777990017,53.446069416895085
10-
Sale,E05000833,Priory,-2.3188514675407204,53.42442168225355
11-
Sale Water Park,E05000835,Sale Moor,-2.2908271013418804,53.42821452578761
12-
Timperley,E05000822,Broadheath,-2.338256238005921,53.40450350076968
13-
Trafford Bar,E05000832,Longford,-2.277049638743866,53.46182841336489
2+
Altrincham,E05015239,Altrincham,-2.3472773802741105,53.38743517541759
3+
Brooklands,E05015243,Brooklands,-2.326108825309977,53.4170853721846
4+
Dane Road,E05015254,Sale Central,-2.311325036366532,53.43029309519503
5+
Barton Dock Road,E05015251,Lostock & Barton,-2.3419966285500364,53.46571384752968
6+
Firswood,E05015250,Longford,-2.2777187251230915,53.45127435103337
7+
Imperial War Museum,E05015247,Gorse Hill & Cornbrook,-2.2967823140016987,53.4685762839136
8+
Navigation Road,E05015239,Altrincham,-2.3433295358496014,53.39570713975196
9+
Old Trafford,E05015250,Longford,-2.2845593115245415,53.45641764315265
10+
Parkway,E05015247,Gorse Hill & Cornbrook,-2.3243921727754793,53.46824379796399
11+
Pomona,E05015247,Gorse Hill & Cornbrook,-2.2779602399853607,53.4651879859581
12+
Stretford,E05015250,Longford,-2.3037919777762506,53.44606941043501
13+
Sale,E05015254,Sale Central,-2.318851467516855,53.42442167579175
14+
Sale Water Park,E05015255,Sale Moor,-2.2908271013201076,53.428214519326104
15+
Timperley,E05015242,Broadheath,-2.3382562379806164,53.40450349430628
16+
Trafford Bar,E05015250,Longford,-2.277049638723108,53.46182840690607
17+
Intu Trafford Centre,E05015251,Lostock & Barton,-2.347798715552635,53.46789927200584
18+
Village,E05015247,Gorse Hill & Cornbrook,-2.309080979442526,53.46738556470442
19+
Wharfside,E05015247,Gorse Hill & Cornbrook,-2.287517036825778,53.466217006235574
Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
{
22
"type": "FeatureCollection",
3+
"name": "trafford_metrolink_stops",
34
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
45
"features": [
5-
{ "type": "Feature", "properties": { "name": "Altrincham", "area_code": "E05000819", "area_name": "Altrincham" }, "geometry": { "type": "Point", "coordinates": [ -2.34727738030008, 53.387435181882331 ] } },
6-
{ "type": "Feature", "properties": { "name": "Brooklands", "area_code": "E05000823", "area_name": "Brooklands" }, "geometry": { "type": "Point", "coordinates": [ -2.326108825334381, 53.417085378646988 ] } },
7-
{ "type": "Feature", "properties": { "name": "Dane Road", "area_code": "E05000833", "area_name": "Priory" }, "geometry": { "type": "Point", "coordinates": [ -2.311325036389838, 53.430293101656368 ] } },
8-
{ "type": "Feature", "properties": { "name": "Firswood", "area_code": "E05000832", "area_name": "Longford" }, "geometry": { "type": "Point", "coordinates": [ -2.277718725143894, 53.451274357493034 ] } },
9-
{ "type": "Feature", "properties": { "name": "Navigation Road", "area_code": "E05000819", "area_name": "Altrincham" }, "geometry": { "type": "Point", "coordinates": [ -2.343329535875281, 53.39570714621604 ] } },
10-
{ "type": "Feature", "properties": { "name": "Old Trafford", "area_code": "E05000832", "area_name": "Longford" }, "geometry": { "type": "Point", "coordinates": [ -2.284559311545858, 53.4564176496119 ] } },
11-
{ "type": "Feature", "properties": { "name": "Pomona", "area_code": "E05000825", "area_name": "Clifford" }, "geometry": { "type": "Point", "coordinates": [ -2.277960240006187, 53.465187992416652 ] } },
12-
{ "type": "Feature", "properties": { "name": "Stretford", "area_code": "E05000832", "area_name": "Longford" }, "geometry": { "type": "Point", "coordinates": [ -2.303791977799002, 53.446069416895085 ] } },
13-
{ "type": "Feature", "properties": { "name": "Sale", "area_code": "E05000833", "area_name": "Priory" }, "geometry": { "type": "Point", "coordinates": [ -2.31885146754072, 53.424421682253552 ] } },
14-
{ "type": "Feature", "properties": { "name": "Sale Water Park", "area_code": "E05000835", "area_name": "Sale Moor" }, "geometry": { "type": "Point", "coordinates": [ -2.29082710134188, 53.42821452578761 ] } },
15-
{ "type": "Feature", "properties": { "name": "Timperley", "area_code": "E05000822", "area_name": "Broadheath" }, "geometry": { "type": "Point", "coordinates": [ -2.338256238005921, 53.404503500769678 ] } },
16-
{ "type": "Feature", "properties": { "name": "Trafford Bar", "area_code": "E05000832", "area_name": "Longford" }, "geometry": { "type": "Point", "coordinates": [ -2.277049638743866, 53.461828413364891 ] } }
6+
{ "type": "Feature", "properties": { "name": "Altrincham", "area_code": "E05015239", "area_name": "Altrincham" }, "geometry": { "type": "Point", "coordinates": [ -2.34727738027411, 53.387435175417593 ] } },
7+
{ "type": "Feature", "properties": { "name": "Brooklands", "area_code": "E05015243", "area_name": "Brooklands" }, "geometry": { "type": "Point", "coordinates": [ -2.326108825309977, 53.417085372184602 ] } },
8+
{ "type": "Feature", "properties": { "name": "Dane Road", "area_code": "E05015254", "area_name": "Sale Central" }, "geometry": { "type": "Point", "coordinates": [ -2.311325036366532, 53.430293095195033 ] } },
9+
{ "type": "Feature", "properties": { "name": "Barton Dock Road", "area_code": "E05015251", "area_name": "Lostock & Barton" }, "geometry": { "type": "Point", "coordinates": [ -2.341996628550036, 53.465713847529678 ] } },
10+
{ "type": "Feature", "properties": { "name": "Firswood", "area_code": "E05015250", "area_name": "Longford" }, "geometry": { "type": "Point", "coordinates": [ -2.277718725123091, 53.451274351033369 ] } },
11+
{ "type": "Feature", "properties": { "name": "Imperial War Museum", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook" }, "geometry": { "type": "Point", "coordinates": [ -2.296782314001699, 53.468576283913599 ] } },
12+
{ "type": "Feature", "properties": { "name": "Navigation Road", "area_code": "E05015239", "area_name": "Altrincham" }, "geometry": { "type": "Point", "coordinates": [ -2.343329535849601, 53.395707139751963 ] } },
13+
{ "type": "Feature", "properties": { "name": "Old Trafford", "area_code": "E05015250", "area_name": "Longford" }, "geometry": { "type": "Point", "coordinates": [ -2.284559311524542, 53.456417643152648 ] } },
14+
{ "type": "Feature", "properties": { "name": "Parkway", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook" }, "geometry": { "type": "Point", "coordinates": [ -2.324392172775479, 53.468243797963993 ] } },
15+
{ "type": "Feature", "properties": { "name": "Pomona", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook" }, "geometry": { "type": "Point", "coordinates": [ -2.277960239985361, 53.465187985958103 ] } },
16+
{ "type": "Feature", "properties": { "name": "Stretford", "area_code": "E05015250", "area_name": "Longford" }, "geometry": { "type": "Point", "coordinates": [ -2.303791977776251, 53.446069410435008 ] } },
17+
{ "type": "Feature", "properties": { "name": "Sale", "area_code": "E05015254", "area_name": "Sale Central" }, "geometry": { "type": "Point", "coordinates": [ -2.318851467516855, 53.424421675791748 ] } },
18+
{ "type": "Feature", "properties": { "name": "Sale Water Park", "area_code": "E05015255", "area_name": "Sale Moor" }, "geometry": { "type": "Point", "coordinates": [ -2.290827101320108, 53.428214519326104 ] } },
19+
{ "type": "Feature", "properties": { "name": "Timperley", "area_code": "E05015242", "area_name": "Broadheath" }, "geometry": { "type": "Point", "coordinates": [ -2.338256237980616, 53.404503494306283 ] } },
20+
{ "type": "Feature", "properties": { "name": "Trafford Bar", "area_code": "E05015250", "area_name": "Longford" }, "geometry": { "type": "Point", "coordinates": [ -2.277049638723108, 53.461828406906072 ] } },
21+
{ "type": "Feature", "properties": { "name": "Intu Trafford Centre", "area_code": "E05015251", "area_name": "Lostock & Barton" }, "geometry": { "type": "Point", "coordinates": [ -2.347798715552635, 53.467899272005837 ] } },
22+
{ "type": "Feature", "properties": { "name": "Village", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook" }, "geometry": { "type": "Point", "coordinates": [ -2.309080979442526, 53.467385564704422 ] } },
23+
{ "type": "Feature", "properties": { "name": "Wharfside", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook" }, "geometry": { "type": "Point", "coordinates": [ -2.287517036825778, 53.466217006235574 ] } }
1724
]
1825
}
Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
{
22
"type": "FeatureCollection",
3+
"name": "trafford_metrolink_stops_styled",
34
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
45
"features": [
5-
{ "type": "Feature", "properties": { "name": "Altrincham", "area_code": "E05000819", "area_name": "Altrincham", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.34727738030008, 53.387435181882331 ] } },
6-
{ "type": "Feature", "properties": { "name": "Brooklands", "area_code": "E05000823", "area_name": "Brooklands", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.326108825334381, 53.417085378646988 ] } },
7-
{ "type": "Feature", "properties": { "name": "Dane Road", "area_code": "E05000833", "area_name": "Priory", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.311325036389838, 53.430293101656368 ] } },
8-
{ "type": "Feature", "properties": { "name": "Firswood", "area_code": "E05000832", "area_name": "Longford", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.277718725143894, 53.451274357493034 ] } },
9-
{ "type": "Feature", "properties": { "name": "Navigation Road", "area_code": "E05000819", "area_name": "Altrincham", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.343329535875281, 53.39570714621604 ] } },
10-
{ "type": "Feature", "properties": { "name": "Old Trafford", "area_code": "E05000832", "area_name": "Longford", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.284559311545858, 53.4564176496119 ] } },
11-
{ "type": "Feature", "properties": { "name": "Pomona", "area_code": "E05000825", "area_name": "Clifford", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.277960240006187, 53.465187992416652 ] } },
12-
{ "type": "Feature", "properties": { "name": "Stretford", "area_code": "E05000832", "area_name": "Longford", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.303791977799002, 53.446069416895085 ] } },
13-
{ "type": "Feature", "properties": { "name": "Sale", "area_code": "E05000833", "area_name": "Priory", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.31885146754072, 53.424421682253552 ] } },
14-
{ "type": "Feature", "properties": { "name": "Sale Water Park", "area_code": "E05000835", "area_name": "Sale Moor", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.29082710134188, 53.42821452578761 ] } },
15-
{ "type": "Feature", "properties": { "name": "Timperley", "area_code": "E05000822", "area_name": "Broadheath", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.338256238005921, 53.404503500769678 ] } },
16-
{ "type": "Feature", "properties": { "name": "Trafford Bar", "area_code": "E05000832", "area_name": "Longford", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.277049638743866, 53.461828413364891 ] } }
6+
{ "type": "Feature", "properties": { "name": "Altrincham", "area_code": "E05015239", "area_name": "Altrincham", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.34727738027411, 53.387435175417593 ] } },
7+
{ "type": "Feature", "properties": { "name": "Brooklands", "area_code": "E05015243", "area_name": "Brooklands", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.326108825309977, 53.417085372184602 ] } },
8+
{ "type": "Feature", "properties": { "name": "Dane Road", "area_code": "E05015254", "area_name": "Sale Central", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.311325036366532, 53.430293095195033 ] } },
9+
{ "type": "Feature", "properties": { "name": "Barton Dock Road", "area_code": "E05015251", "area_name": "Lostock & Barton", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.341996628550036, 53.465713847529678 ] } },
10+
{ "type": "Feature", "properties": { "name": "Firswood", "area_code": "E05015250", "area_name": "Longford", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.277718725123091, 53.451274351033369 ] } },
11+
{ "type": "Feature", "properties": { "name": "Imperial War Museum", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.296782314001699, 53.468576283913599 ] } },
12+
{ "type": "Feature", "properties": { "name": "Navigation Road", "area_code": "E05015239", "area_name": "Altrincham", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.343329535849601, 53.395707139751963 ] } },
13+
{ "type": "Feature", "properties": { "name": "Old Trafford", "area_code": "E05015250", "area_name": "Longford", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.284559311524542, 53.456417643152648 ] } },
14+
{ "type": "Feature", "properties": { "name": "Parkway", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.324392172775479, 53.468243797963993 ] } },
15+
{ "type": "Feature", "properties": { "name": "Pomona", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.277960239985361, 53.465187985958103 ] } },
16+
{ "type": "Feature", "properties": { "name": "Stretford", "area_code": "E05015250", "area_name": "Longford", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.303791977776251, 53.446069410435008 ] } },
17+
{ "type": "Feature", "properties": { "name": "Sale", "area_code": "E05015254", "area_name": "Sale Central", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.318851467516855, 53.424421675791748 ] } },
18+
{ "type": "Feature", "properties": { "name": "Sale Water Park", "area_code": "E05015255", "area_name": "Sale Moor", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.290827101320108, 53.428214519326104 ] } },
19+
{ "type": "Feature", "properties": { "name": "Timperley", "area_code": "E05015242", "area_name": "Broadheath", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.338256237980616, 53.404503494306283 ] } },
20+
{ "type": "Feature", "properties": { "name": "Trafford Bar", "area_code": "E05015250", "area_name": "Longford", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.277049638723108, 53.461828406906072 ] } },
21+
{ "type": "Feature", "properties": { "name": "Intu Trafford Centre", "area_code": "E05015251", "area_name": "Lostock & Barton", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.347798715552635, 53.467899272005837 ] } },
22+
{ "type": "Feature", "properties": { "name": "Village", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.309080979442526, 53.467385564704422 ] } },
23+
{ "type": "Feature", "properties": { "name": "Wharfside", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.287517036825778, 53.466217006235574 ] } }
1724
]
1825
}

0 commit comments

Comments
 (0)