(location, fuelType)
| 25 | const textColor = Color.dynamic(new Color('000000'), new Color('EDEDED')); |
| 26 | const greyTextColor = Color.dynamic(new Color('000000'), new Color('BBBBBB')) |
| 27 | const apiURL = (location, fuelType) => `https://api.e-control.at/sprit/1.0/search/gas-stations/by-address?latitude=${location.latitude.toFixed(3)}&longitude=${location.longitude.toFixed(3)}&fuelType=${fuelType.toUpperCase()}&includeClosed=false` |
| 28 | |
| 29 | let station = await loadStation(fuelType) |
| 30 | let widget = await createWidget(station, fuelType) |