Skip to content

Commit

Permalink
Add additional vehicle information and photos
Browse files Browse the repository at this point in the history
  • Loading branch information
42A7C5 committed Jan 6, 2024
1 parent 926f848 commit fc79e76
Show file tree
Hide file tree
Showing 19 changed files with 81 additions and 19 deletions.
60 changes: 56 additions & 4 deletions src/data/fleet/f-mts~rt~onebusaway.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
"model": "Low-Floor",
"year": 2013,
"regex": "^23[0-9]{2}$",
"image": "/vehicles/mts/2322.webp",
"credit": "Myra F for Catenary",
"home": "SBD/ECD"
},
{
Expand All @@ -74,6 +76,8 @@
"model": "Low-Floor",
"year": 2014,
"regex": "^24[0-9]{2}$",
"image": "/vehicles/mts/2411.webp",
"credit": "Myra F for Catenary",
"home": "SBD"
},
{
Expand All @@ -82,6 +86,8 @@
"model": "Low-Floor",
"year": 2015,
"regex": "^20[0-9]{2}$",
"image": "/vehicles/mts/2008.jpg",
"credit": "Samuel Sharp for Catenary",
"home": "SBD"
},
{
Expand All @@ -90,6 +96,8 @@
"model": "Low-Floor",
"year": 2015,
"regex": "^82[0-9]{2}$",
"image": "/vehicles/mts/8210.webp",
"credit": "Myra F for Catenary",
"home": "ECD"
},
{
Expand All @@ -98,14 +106,16 @@
"model": "AeroElite 320",
"year": 2016,
"regex": "^31[0-9]{2}$",
"image": "/vehicles/mts/3108.jpg",
"credit": "Samuel Sharp for Catenary",
"home": "CPD"
},
{
"type": "Standard MTS Bus",
"manufacturer": "Gillig",
"model": "Low-Floor",
"year": 2016,
"regex": "^83[0-9]{2}$",
"regex": "^831[0-9]$|^832[0-9]$|^833[0-9]$|^834[0-9]$",
"home": "ECD"
},
{
Expand All @@ -114,6 +124,8 @@
"model": "Low-Floor",
"year": 2017,
"regex": "^21[0-9]{2}$",
"image": "/vehicles/mts/2133.webp",
"credit": "Myra F for Catenary",
"home": "SBD"
},
{
Expand All @@ -129,7 +141,19 @@
"manufacturer": "New Flyer",
"model": "XN60",
"year": 2017,
"regex": "^75[0-9]{2}$",
"regex": "^750[0-9]$|^751[0-9]$|^752[0-9]$|^753[0-9]$|^754[0-9]$",
"image": "/vehicles/mts/7505.jpg",
"credit": "Samuel Sharp for Catenary",
"home": "SBD"
},
{
"type": "Articulated Bus - Rapid Electric",
"manufacturer": "New Flyer",
"model": "XE60",
"year": 2023,
"regex": "^755[0-9]$|^756[0-9]$",
"image": "/vehicles/mts/7553.jpg",
"credit": "Samuel Sharp for Catenary",
"home": "SBD"
},
{
Expand Down Expand Up @@ -162,6 +186,18 @@
"model": "Low-Floor",
"year": 2022,
"regex": "^22[0-9]{2}$",
"image": "/vehicles/mts/2236.webp",
"credit": "Myra F for Catenary",
"home": "SBD"
},
{
"type": "Standard MTS Bus",
"manufacturer": "Gillig",
"model": "Low-Floor",
"year": 2021,
"regex": "^26[0-9]{2}$",
"image": "/vehicles/mts/2624.jpg",
"credit": "Samuel Sharp for Catenary",
"home": "SBD"
},
{
Expand Down Expand Up @@ -226,6 +262,8 @@
"model": "Low-Floor",
"year": 2020,
"regex": "^16[0-9]{2}$",
"image": "/vehicles/mts/1603.webp",
"credit": "Myra F for Catenary",
"home": "IAD"
},
{
Expand All @@ -234,6 +272,8 @@
"model": "Low-Floor",
"year": 2020,
"regex": "^17[0-9]{2}$",
"image": "/vehicles/mts/1701.jpg",
"credit": "Samuel Sharp for Catenary",
"home": "IAD/KMD"
},
{
Expand All @@ -242,6 +282,8 @@
"model": "XN60",
"year": 2020,
"regex": "^18[0-9]{2}$",
"image": "/vehicles/mts/1819.jpg",
"credit": "Samuel Sharp for Catenary",
"home": "IAD"
},
{
Expand All @@ -251,6 +293,7 @@
"year": 2019,
"regex": "^15[0-9]{2}$",
"image": "https://www.sdmts.com/sites/default/files/attachments/zeb1.jpg",
"credit": "MTS photo",
"home": "ANY"
},
{
Expand Down Expand Up @@ -284,6 +327,7 @@
"year": 2014,
"regex": "^9[0-9]{2}$",
"image": "https://www.sdmts.com/sites/default/files/attachments/DTW15%20%2839%29.jpg",
"credit": "MTS photo",
"home": "KMD"
},
{
Expand All @@ -293,6 +337,7 @@
"year": 2013,
"regex": "^12[0-9]{2}$",
"image": "https://www.sdmts.com/sites/default/files/attachments/DTW15%20%2857%29.jpg",
"credit": "MTS photo",
"home": "IAD"
},
{
Expand All @@ -301,6 +346,8 @@
"model": "XN60",
"year": 2013,
"regex": "^11[0-9]{2}$",
"image": "/vehicles/mts/1110.jpg",
"credit": "Samuel Sharp for Catenary",
"home": "KMD"
},
{
Expand All @@ -309,15 +356,18 @@
"model": "Low-Floor",
"year": 2013,
"regex": "^8[0-9]{2}$",
"home": "IAD",
"image": "https://www.sdmts.com/sites/default/files/attachments/DTW15%20%2844%29.jpg"
"image": "https://www.sdmts.com/sites/default/files/attachments/DTW15%20%2844%29.jpg",
"credit": "MTS photo",
"home": "IAD"
},
{
"type": "Standard MTS Bus",
"manufacturer": "New Flyer",
"model": "C40LFR",
"year": 2012,
"regex": "^7[0-9]{2}$",
"image": "/vehicles/mts/729.jpg",
"credit": "Samuel Sharp for Catenary",
"home": "IAD"
},
{
Expand All @@ -326,6 +376,8 @@
"model": "C40LFR",
"year": 2011,
"regex": "^6[0-9]{2}$",
"image": "/vehicles/mts/612.jpg",
"credit": "Samuel Sharp for Catenary",
"home": "IAD"
},
{
Expand Down
21 changes: 14 additions & 7 deletions src/i18n/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const i18n = {
language: 'Language',
mapstyle: 'Map style',
styledefault: 'Default',
styleclassic: 'Classic',
styleocean: 'Bright Ocean',
stylesea: 'Deep Sea',
stylearchi: 'Archi',
stylesat: 'Satellite',
styleminimal: 'Minimal',
Expand Down Expand Up @@ -69,7 +70,8 @@ const i18n = {
language: 'Langue',
mapstyle: 'Style de carte',
styledefault: 'Défaut',
styleclassic: 'Classique',
styleocean: 'Bright Ocean',
stylesea: 'Deep Sea',
stylearchi: 'Archi',
stylesat: 'Satellite',
styleminimal: 'Minimal',
Expand Down Expand Up @@ -120,7 +122,8 @@ const i18n = {
language: 'Idioma',
mapstyle: 'Estilo de mapa',
styledefault: 'Defecto',
styleclassic: 'Clásico',
styleocean: 'Bright Ocean',
stylesea: 'Deep Sea',
stylearchi: 'Archi',
stylesat: 'Satélite',
styleminimal: 'Minimal',
Expand Down Expand Up @@ -171,7 +174,8 @@ const i18n = {
language: 'Sprache',
mapstyle: 'Kartenstil',
styledefault: 'Standard',
styleclassic: 'Klassisch',
styleocean: 'Bright Ocean',
stylesea: 'Deep Sea',
stylearchi: 'Archi',
stylesat: 'Satellit',
styleminimal: 'Minimal',
Expand Down Expand Up @@ -222,7 +226,8 @@ const i18n = {
language: '언어',
mapstyle: '지도 스타일',
styledefault: '기본',
styleclassic: '클래식',
styleocean: 'Bright Ocean',
stylesea: 'Deep Sea',
stylearchi: 'Archi',
stylesat: '위성',
styleminimal: '최소한의',
Expand Down Expand Up @@ -274,7 +279,8 @@ const i18n = {
language: '語言',
mapstyle: '地圖樣式',
styledefault: '預設',
styleclassic: '經典',
styleocean: 'Bright Ocean',
stylesea: 'Deep Sea',
stylearchi: 'Archi',
stylesat: '衛星',
styleminimal: '最小',
Expand Down Expand Up @@ -325,7 +331,8 @@ const i18n = {
language: '语言',
mapstyle: '地图样式',
styledefault: '预设',
styleclassic: '经典',
styleocean: 'Bright Ocean',
stylesea: 'Deep Sea',
stylearchi: 'Archi',
stylesat: '卫星',
styleminimal: '最小',
Expand Down
19 changes: 11 additions & 8 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1094,17 +1094,18 @@
//get url param "sat"
let style = darkMode
? 'mapbox://styles/kylerschin/clqogkdiy00bs01obh352h32o'
: 'mapbox://styles/kylerschin/clqomei1n006h01raaylca7ty';
? 'mapbox://styles/kylerschin/clm2i6cmg00fw01of2vp5h9p5'
: 'mapbox://styles/kylerschin/cllpbma0e002h01r6afyzcmd8';
if (browser) {
if (window.localStorage.mapStyle == 'sat') {
style = 'mapbox://styles/kylerschin/clncqfm5p00b601recvp14ipu';
}
if (window.localStorage.mapStyle == 'classic') {
style = darkMode
? 'mapbox://styles/kylerschin/clm2i6cmg00fw01of2vp5h9p5'
: 'mapbox://styles/kylerschin/cllpbma0e002h01r6afyzcmd8';
if (window.localStorage.mapStyle == 'brightocean') {
style = 'mapbox://styles/kylerschin/clqomei1n006h01raaylca7ty';
}
if (window.localStorage.mapStyle == 'deepsea') {
style = 'mapbox://styles/kylerschin/clqogkdiy00bs01obh352h32o';
}
if (window.localStorage.mapStyle == 'archi') {
style = 'mapbox://styles/kylerschin/clqpdas5u00c801r8anbdf6xl';
Expand Down Expand Up @@ -2329,7 +2330,8 @@ on:keydown={() => {
>
<option value="none">--</option>
<option value="default">{strings.styledefault}</option>
<option value="classic">{strings.styleclassic}</option>
<option value="brightocean">{strings.styleocean}</option>
<option value="deepsea">{strings.stylesea}</option>
{#if browser}
{#if window.location.search.includes('sat')}
<option value="sat">{strings.stylesat}</option>
Expand Down Expand Up @@ -2422,7 +2424,7 @@ on:keydown={() => {
<br />
{/if}
{#if selectedVehicle.properties.agency == 'f-mts~rt~onebusaway'}
{#each mtsFleetData as { type, manufacturer, model, year, regex, home, image }}
{#each mtsFleetData as { type, manufacturer, model, year, regex, home, image, credit }}
{#if (new RegExp(regex)).test(selectedVehicle.properties.vehicleIdLabel || '')}
<b>Type</b> {type}
<br />
Expand All @@ -2432,6 +2434,7 @@ on:keydown={() => {
<br /><br />
{#if image}
<img src={image} alt={model} style:width="100%">
<i>{credit}</i>
{/if}
{/if}
{/each}
Expand Down
Binary file added static/vehicles/mts/1110.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/vehicles/mts/1603.webp
Binary file not shown.
Binary file added static/vehicles/mts/1701.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/vehicles/mts/1819.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/vehicles/mts/2008.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/vehicles/mts/2133.webp
Binary file not shown.
Binary file added static/vehicles/mts/2236.webp
Binary file not shown.
Binary file added static/vehicles/mts/2322.webp
Binary file not shown.
Binary file added static/vehicles/mts/2411.webp
Binary file not shown.
Binary file added static/vehicles/mts/2624.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/vehicles/mts/3108.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/vehicles/mts/612.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/vehicles/mts/729.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/vehicles/mts/7505.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/vehicles/mts/7553.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/vehicles/mts/8210.webp
Binary file not shown.

0 comments on commit fc79e76

Please sign in to comment.