Skip to content

Commit b654b23

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

6 files changed

Lines changed: 38 additions & 33 deletions

File tree

transport/trains/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/trains/stops/pre-processing.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
## Metrolink stops in Trafford ##
1+
## Rail stops in Trafford ##
22

33
# Source: Transport for Greater Manchester
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/trains/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/train/stops/trafford_train_stops.geojson")
7+
geojson <- st_read("trafford_train_stops.geojson")
88

99
# apply styles ---------------------------
1010
geojson_styles <- geojson_style(geojson,
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name,area_code,area_name,long,lat
2-
Altrincham Interchange,E05000819,Altrincham,-2.3471588562402355,53.387651253781314
3-
Chassen Road,E05000838,Urmston,-2.3681727538391737,53.44617585532639
4-
Flixton,E05000828,Flixton,-2.383508366742162,53.443772578726694
5-
Hale,E05000831,Hale Central,-2.347490240675866,53.378499863566454
6-
Humphrey Park,E05000836,Stretford,-2.3277185594666907,53.45225315327865
7-
Manchester United Football Ground,E05000829,Gorse Hill,-2.2907280340925724,53.46218239173471
8-
Navigation Road,E05000819,Altrincham,-2.343329535875281,53.39570714621604
9-
Trafford Park,E05000829,Gorse Hill,-2.3116999269243546,53.45476789316516
10-
Urmston,E05000838,Urmston,-2.353796483949151,53.44826871078196
2+
Altrincham Interchange,E05015239,Altrincham,-2.347158856214275,53.38765124731658
3+
Chassen Road,E05015246,Flixton,-2.3681727538116073,53.44617584886633
4+
Flixton,E05015246,Flixton,-2.383508366713449,53.44377257226649
5+
Hale,E05015248,Hale,-2.347490240649887,53.378499857101
6+
Humphrey Park,E05015251,Lostock & Barton,-2.3277185594421455,53.452253146819075
7+
Manchester United Football Ground,E05015247,Gorse Hill & Cornbrook,-2.2907280340707916,53.462182385275945
8+
Navigation Road,E05015239,Altrincham,-2.3433295358496014,53.39570713975196
9+
Trafford Park,E05015247,Gorse Hill & Cornbrook,-2.3116999269010066,53.454767886705795
10+
Urmston,E05015259,Urmston,-2.353796483922658,53.44826870432208
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"type": "FeatureCollection",
3+
"name": "trafford_train_stops",
34
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
45
"features": [
5-
{ "type": "Feature", "properties": { "name": "Altrincham Interchange", "area_code": "E05000819", "area_name": "Altrincham" }, "geometry": { "type": "Point", "coordinates": [ -2.347158856240235, 53.387651253781314 ] } },
6-
{ "type": "Feature", "properties": { "name": "Chassen Road", "area_code": "E05000838", "area_name": "Urmston" }, "geometry": { "type": "Point", "coordinates": [ -2.368172753839174, 53.446175855326388 ] } },
7-
{ "type": "Feature", "properties": { "name": "Flixton", "area_code": "E05000828", "area_name": "Flixton" }, "geometry": { "type": "Point", "coordinates": [ -2.383508366742162, 53.443772578726694 ] } },
8-
{ "type": "Feature", "properties": { "name": "Hale", "area_code": "E05000831", "area_name": "Hale Central" }, "geometry": { "type": "Point", "coordinates": [ -2.347490240675866, 53.378499863566454 ] } },
9-
{ "type": "Feature", "properties": { "name": "Humphrey Park", "area_code": "E05000836", "area_name": "Stretford" }, "geometry": { "type": "Point", "coordinates": [ -2.327718559466691, 53.452253153278647 ] } },
10-
{ "type": "Feature", "properties": { "name": "Manchester United Football Ground", "area_code": "E05000829", "area_name": "Gorse Hill" }, "geometry": { "type": "Point", "coordinates": [ -2.290728034092572, 53.462182391734707 ] } },
11-
{ "type": "Feature", "properties": { "name": "Navigation Road", "area_code": "E05000819", "area_name": "Altrincham" }, "geometry": { "type": "Point", "coordinates": [ -2.343329535875281, 53.39570714621604 ] } },
12-
{ "type": "Feature", "properties": { "name": "Trafford Park", "area_code": "E05000829", "area_name": "Gorse Hill" }, "geometry": { "type": "Point", "coordinates": [ -2.311699926924355, 53.454767893165162 ] } },
13-
{ "type": "Feature", "properties": { "name": "Urmston", "area_code": "E05000838", "area_name": "Urmston" }, "geometry": { "type": "Point", "coordinates": [ -2.353796483949151, 53.44826871078196 ] } }
6+
{ "type": "Feature", "properties": { "name": "Altrincham Interchange", "area_code": "E05015239", "area_name": "Altrincham" }, "geometry": { "type": "Point", "coordinates": [ -2.347158856214275, 53.387651247316583 ] } },
7+
{ "type": "Feature", "properties": { "name": "Chassen Road", "area_code": "E05015246", "area_name": "Flixton" }, "geometry": { "type": "Point", "coordinates": [ -2.368172753811607, 53.446175848866332 ] } },
8+
{ "type": "Feature", "properties": { "name": "Flixton", "area_code": "E05015246", "area_name": "Flixton" }, "geometry": { "type": "Point", "coordinates": [ -2.383508366713449, 53.443772572266489 ] } },
9+
{ "type": "Feature", "properties": { "name": "Hale", "area_code": "E05015248", "area_name": "Hale" }, "geometry": { "type": "Point", "coordinates": [ -2.347490240649887, 53.378499857100998 ] } },
10+
{ "type": "Feature", "properties": { "name": "Humphrey Park", "area_code": "E05015251", "area_name": "Lostock & Barton" }, "geometry": { "type": "Point", "coordinates": [ -2.327718559442145, 53.452253146819075 ] } },
11+
{ "type": "Feature", "properties": { "name": "Manchester United Football Ground", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook" }, "geometry": { "type": "Point", "coordinates": [ -2.290728034070792, 53.462182385275945 ] } },
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": "Trafford Park", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook" }, "geometry": { "type": "Point", "coordinates": [ -2.311699926901007, 53.454767886705795 ] } },
14+
{ "type": "Feature", "properties": { "name": "Urmston", "area_code": "E05015259", "area_name": "Urmston" }, "geometry": { "type": "Point", "coordinates": [ -2.353796483922658, 53.448268704322082 ] } }
1415
]
1516
}
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"type": "FeatureCollection",
3+
"name": "trafford_train_stops_styled",
34
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
45
"features": [
5-
{ "type": "Feature", "properties": { "name": "Altrincham Interchange", "area_code": "E05000819", "area_name": "Altrincham", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.347158856240235, 53.387651253781314 ] } },
6-
{ "type": "Feature", "properties": { "name": "Chassen Road", "area_code": "E05000838", "area_name": "Urmston", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.368172753839174, 53.446175855326388 ] } },
7-
{ "type": "Feature", "properties": { "name": "Flixton", "area_code": "E05000828", "area_name": "Flixton", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.383508366742162, 53.443772578726694 ] } },
8-
{ "type": "Feature", "properties": { "name": "Hale", "area_code": "E05000831", "area_name": "Hale Central", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.347490240675866, 53.378499863566454 ] } },
9-
{ "type": "Feature", "properties": { "name": "Humphrey Park", "area_code": "E05000836", "area_name": "Stretford", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.327718559466691, 53.452253153278647 ] } },
10-
{ "type": "Feature", "properties": { "name": "Manchester United Football Ground", "area_code": "E05000829", "area_name": "Gorse Hill", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.290728034092572, 53.462182391734707 ] } },
11-
{ "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 ] } },
12-
{ "type": "Feature", "properties": { "name": "Trafford Park", "area_code": "E05000829", "area_name": "Gorse Hill", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.311699926924355, 53.454767893165162 ] } },
13-
{ "type": "Feature", "properties": { "name": "Urmston", "area_code": "E05000838", "area_name": "Urmston", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.353796483949151, 53.44826871078196 ] } }
6+
{ "type": "Feature", "properties": { "name": "Altrincham Interchange", "area_code": "E05015239", "area_name": "Altrincham", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.347158856214275, 53.387651247316583 ] } },
7+
{ "type": "Feature", "properties": { "name": "Chassen Road", "area_code": "E05015246", "area_name": "Flixton", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.368172753811607, 53.446175848866332 ] } },
8+
{ "type": "Feature", "properties": { "name": "Flixton", "area_code": "E05015246", "area_name": "Flixton", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.383508366713449, 53.443772572266489 ] } },
9+
{ "type": "Feature", "properties": { "name": "Hale", "area_code": "E05015248", "area_name": "Hale", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.347490240649887, 53.378499857100998 ] } },
10+
{ "type": "Feature", "properties": { "name": "Humphrey Park", "area_code": "E05015251", "area_name": "Lostock & Barton", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.327718559442145, 53.452253146819075 ] } },
11+
{ "type": "Feature", "properties": { "name": "Manchester United Football Ground", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.290728034070792, 53.462182385275945 ] } },
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": "Trafford Park", "area_code": "E05015247", "area_name": "Gorse Hill & Cornbrook", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.311699926901007, 53.454767886705795 ] } },
14+
{ "type": "Feature", "properties": { "name": "Urmston", "area_code": "E05015259", "area_name": "Urmston", "marker-color": "#fc6721", "marker-size": "medium" }, "geometry": { "type": "Point", "coordinates": [ -2.353796483922658, 53.448268704322082 ] } }
1415
]
1516
}

0 commit comments

Comments
 (0)