Skip to content

Commit

Permalink
Merge pull request #2885 from HSLdevcom/oulu-citybikes
Browse files Browse the repository at this point in the history
Oulu citybikes
  • Loading branch information
joonasrissanen authored Jul 30, 2019
2 parents 57f5ad5 + 1a96260 commit 7b374fa
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
28 changes: 28 additions & 0 deletions app/configurations/config.matka.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,34 @@ export default {
en: 'https://www.hsl.fi/en/citybikes',
},
},
turku: {
icon: 'citybike',
name: {
fi: 'Turku',
sv: 'Åbo',
en: 'Turku',
},
type: 'citybike',
url: {
fi: 'https://www.foli.fi/kaupunkipyorat',
sv: 'https://www.foli.fi/sv/stadscyklar',
en: 'https://www.foli.fi/en/citybikes',
},
},
oulu: {
icon: 'citybike',
name: {
fi: 'Oulu',
sv: 'Uleåborg',
en: 'Oulu',
},
type: 'citybike',
url: {
fi: 'https://kaupunkipyorat.ouka.fi/',
sv: 'https://kaupunkipyorat.ouka.fi/home',
en: 'https://kaupunkipyorat.ouka.fi/home',
},
},
},
},

Expand Down
31 changes: 31 additions & 0 deletions app/configurations/config.oulu.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,44 @@ export default configMerger(walttiConfig, {
// Navbar logo
logo: 'oulu/oulu-logo.png',

cityBike: {
showCityBikes: true,
useUrl: {
fi: 'https://kaupunkipyorat.ouka.fi/',
sv: 'https://kaupunkipyorat.ouka.fi/home',
en: 'https://kaupunkipyorat.ouka.fi/home',
},
networks: {
oulu: {
icon: 'citybike',
name: {
fi: 'Oulu',
sv: 'Uleåborg',
en: 'Oulu',
},
type: 'citybike',
url: {
fi: 'https://kaupunkipyorat.ouka.fi/',
sv: 'https://kaupunkipyorat.ouka.fi/home',
en: 'https://kaupunkipyorat.ouka.fi/home',
},
},
},
},

searchParams: {
'boundary.rect.min_lat': 64.71,
'boundary.rect.max_lat': 65.38,
'boundary.rect.min_lon': 24.37,
'boundary.rect.max_lon': 26.61,
},

transportModes: {
citybike: {
availableForSelection: true,
},
},

areaPolygon: [[24.37, 64.71], [24.37, 65.38], [26.61, 65.38], [26.61, 64.71]],

defaultEndpoint: {
Expand Down
2 changes: 1 addition & 1 deletion app/configurations/config.turku.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default configMerger(walttiConfig, {
en: 'https://www.foli.fi/en/citybikes',
},
networks: {
smoove: {
turku: {
icon: 'citybike',
name: {
fi: 'Turku',
Expand Down

0 comments on commit 7b374fa

Please sign in to comment.