Skip to content

Commit

Permalink
Added VIA 603
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffyactive committed Apr 7, 2024
1 parent 860db08 commit 4cc8577
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/js/trekungen.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const vectorSource = new ol.source.Vector({});
fetch(BASE_PATH + 'denvegaser/geojson/overview.geojson')
.then((response) => response.json())
.then((json) => vectorSource.addFeatures(new GeoJSON().readFeatures(json)));
fetch(BASE_PATH + 'via603/geojson/overview.geojson')
.then((response) => response.json())
.then((json) => vectorSource.addFeatures(new GeoJSON().readFeatures(json)));

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

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

Senneterre by train (on VIA 603).

Shawinigan to Senneterre
------------------------

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

:movie_camera: [YouTube](https://youtu.be/dSTVO8u1y7U)

:globe_with_meridians: Overpass API query:
46 changes: 46 additions & 0 deletions via603/geojson/overview.geojson
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "EPSG:4326"
}
},
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-72.74535, 46.54977]
},
"properties": { "trek": "via603" }
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-77.24425, 48.39225]
},
"properties": { "trek": "via603" }
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[-72.74535, 46.54977],
[-72.56417, 46.72311],
[-72.46786, 46.85352],
[-72.78246, 47.43941],
[-73.7753, 47.8982],
[-74.18027, 47.88775],
[-74.47024, 47.87259],
[-74.61488, 47.91977],
[-75.35969, 48.10962],
[-77.24425, 48.39225]
]
},
"properties": { "trek": "via603" }
}
]
}
4 changes: 4 additions & 0 deletions via603/overview.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "Senneterre by train",
"youtube": "https://www.youtube.com/embed/dSTVO8u1y7U?si=F4_TBT6GgdKfEYS0"
}

0 comments on commit 4cc8577

Please sign in to comment.