From 45a7fbfc689942b912b64b5ab992f348a2aa9c92 Mon Sep 17 00:00:00 2001 From: Anne-Greeth Schot-van Herwijnen Date: Wed, 16 Aug 2023 20:20:21 +0200 Subject: [PATCH 1/2] Remove Amersfoort from the manual stations --- app/data/manual-stations.js | 47 ------------------------------------- 1 file changed, 47 deletions(-) diff --git a/app/data/manual-stations.js b/app/data/manual-stations.js index 31fcedb..c528d21 100644 --- a/app/data/manual-stations.js +++ b/app/data/manual-stations.js @@ -1,51 +1,4 @@ export const manualStations = [ - { - name: 'Amersfoort', - street: 'De Windturbine', - streetnr: '1', - zip: '3815', - city: 'Amersfoort', - image: null, - latitude: '52.163627', - longitude: '5.424038', - operatorname: 'Fountain Fuel', - operatorlogo: null, - hostname: null, - countryshortname: 'NL', - funding: null, - statusMessage: - 'Station is conditional open. Data is entered manualy for now', - status_unknown: false, - progress_percent: '23', - progress_description: 'At the planning stage', - progress_extratext: null, - date_commissioning_message: null, - activity_message: null, - openinghours_nextchange_message: null, - price_message: 'EUR 18,95', - has_700_small: 't', - has_350_large: 't', - has_350_small: 't', - opening_hours: 'Open 24/7', - fundingpage: '', - news: null, - paymenttypes: [ - { - name: 'creditcard', - apiname: 'CC', - descr: 'Credit card', - page: null, - directurl: null, - }, - { - name: 'debit', - apiname: 'DEBIT', - descr: 'Debit card', - page: null, - directurl: null, - }, - ], - }, { name: 'Vissers Energy', // price_message: 'EUR 19.50*', From 810a5897ae462657734d1175545261a607ececb0 Mon Sep 17 00:00:00 2001 From: Anne-Greeth Schot-van Herwijnen Date: Wed, 16 Aug 2023 20:24:37 +0200 Subject: [PATCH 2/2] Fix language for the stations --- netlify/functions/stations.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/netlify/functions/stations.js b/netlify/functions/stations.js index 81afff0..baa51d1 100644 --- a/netlify/functions/stations.js +++ b/netlify/functions/stations.js @@ -1,17 +1,17 @@ /* eslint-disable */ const fetch = require('node-fetch'); -const ALL_700_API_ENDPOINT = 'https://fuelstations.h2-api.live/v1/fuelstation/masterlist?fuel_type=P700_SMALL&language=de&__show_permclosed__=1&__t__=b13831e6243b9bcd4c74aeda55c1fe22'; +const ALL_700_API_ENDPOINT = 'https://fuelstations.h2-api.live/v1/fuelstation/masterlist?fuel_type=P700_SMALL&language=en&__show_permclosed__=1&__t__=b13831e6243b9bcd4c74aeda55c1fe22'; -const ALL_350_SMALL_API_ENDPOINT = 'https://fuelstations.h2-api.live/v1/fuelstation/masterlist?fuel_type=P350_SMALL&language=de&__show_permclosed__=1&__t__=b13831e6243b9bcd4c74aeda55c1fe22'; +const ALL_350_SMALL_API_ENDPOINT = 'https://fuelstations.h2-api.live/v1/fuelstation/masterlist?fuel_type=P350_SMALL&language=en&__show_permclosed__=1&__t__=b13831e6243b9bcd4c74aeda55c1fe22'; -const ALL_350_LARGE_API_ENDPOINT = 'https://fuelstations.h2-api.live/v1/fuelstation/masterlist?fuel_type=P350_LARGE&language=de&__show_permclosed__=1&__t__=b13831e6243b9bcd4c74aeda55c1fe22'; +const ALL_350_LARGE_API_ENDPOINT = 'https://fuelstations.h2-api.live/v1/fuelstation/masterlist?fuel_type=P350_LARGE&language=en&__show_permclosed__=1&__t__=b13831e6243b9bcd4c74aeda55c1fe22'; -const STATUS_700_API_ENDPOINT = 'https://fuelstations.h2-api.live/v1/fuelstation/statuslist?fuel_type=P700_SMALL&language=de&__show_permclosed__=1&__t__=b13831e6243b9bcd4c74aeda55c1fe22' +const STATUS_700_API_ENDPOINT = 'https://fuelstations.h2-api.live/v1/fuelstation/statuslist?fuel_type=P700_SMALL&language=en&__show_permclosed__=1&__t__=b13831e6243b9bcd4c74aeda55c1fe22' -const STATUS_350_SMALL_API_ENDPOINT = 'https://fuelstations.h2-api.live/v1/fuelstation/statuslist?fuel_type=P350_SMALL&language=de&__show_permclosed__=1&__t__=b13831e6243b9bcd4c74aeda55c1fe22' +const STATUS_350_SMALL_API_ENDPOINT = 'https://fuelstations.h2-api.live/v1/fuelstation/statuslist?fuel_type=P350_SMALL&language=en&__show_permclosed__=1&__t__=b13831e6243b9bcd4c74aeda55c1fe22' -const STATUS_350_LARGE_API_ENDPOINT = 'https://fuelstations.h2-api.live/v1/fuelstation/statuslist?fuel_type=P350_LARGE&language=de&__show_permclosed__=1&__t__=b13831e6243b9bcd4c74aeda55c1fe22' +const STATUS_350_LARGE_API_ENDPOINT = 'https://fuelstations.h2-api.live/v1/fuelstation/statuslist?fuel_type=P350_LARGE&language=en&__show_permclosed__=1&__t__=b13831e6243b9bcd4c74aeda55c1fe22' exports.handler = async (event, context) => { try {