Skip to content

Commit

Permalink
Added VIA 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffyactive committed Apr 23, 2024
1 parent 4cc8577 commit a71a7d9
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/js/trekungen.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ fetch(BASE_PATH + 'denvegaser/geojson/overview.geojson')
fetch(BASE_PATH + 'via603/geojson/overview.geojson')
.then((response) => response.json())
.then((json) => vectorSource.addFeatures(new GeoJSON().readFeatures(json)));
fetch(BASE_PATH + 'via1/geojson/overview.geojson')
.then((response) => response.json())
.then((json) => vectorSource.addFeatures(new GeoJSON().readFeatures(json)));

const vectorLayer = new ol.layer.Vector({ source: vectorSource });

Expand All @@ -36,7 +39,7 @@ const map = new ol.Map({
view: new ol.View({
projection: 'EPSG:4326',
center: [-73.55413, 45.50882],
zoom: 2
zoom: 3
}),
});

Expand Down
13 changes: 13 additions & 0 deletions via1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
via1
==========

The Canadian: Toronto to Vancouver by train (on VIA 1).

Toronto to Vancouver
--------------------

:round_pushpin: [Route](geojson/x.geojson):

:movie_camera: [YouTube](https://www.youtube.com/playlist?list=PLuoY9uzz-lDGGxumZykpVxeWoBflAvguU)

:globe_with_meridians: Overpass API query:
53 changes: 53 additions & 0 deletions via1/geojson/overview.geojson
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
},
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-79.38038, 43.64454]
},
"properties": { "trek": "via1" }
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-123.09746, 49.27372]
},
"properties": { "trek": "via1" }
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[-79.38038, 43.64454],
[-80.90216, 46.52459],
[-84.77411, 49.21855],
[-89.03781, 50.30143],
[-97.13359, 49.88915],
[-100.23850, 50.02883],
[-102.8069, 50.9258],
[-106.73826, 52.10455],
[-110.86261, 52.83209],
[-113.53093, 53.57891],
[-118.0793, 52.8762],
[-119.41809, 52.97290],
[-120.34840, 50.71823],
[-121.5807, 50.2367],
[-121.43635, 49.37920],
[-121.94912, 49.16448],
[-123.09746, 49.27372]
]
},
"properties": { "trek": "via1" }
}
]
}
4 changes: 4 additions & 0 deletions via1/overview.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "The Canadian: Toronto to Vancouver by rail",
"youtube": "https://www.youtube.com/embed/videoseries?si=7r7mtNwp6y3nw80f&list=PLuoY9uzz-lDGGxumZykpVxeWoBflAvguU"
}

0 comments on commit a71a7d9

Please sign in to comment.