(location, radius, apiKey)
| 49 | const textColor = Color.dynamic(new Color('000000'), new Color('EDEDED')); |
| 50 | |
| 51 | const apiURL = (location, radius, apiKey) => `https://creativecommons.tankerkoenig.de/json/list.php?lat=${location.latitude.toFixed(3)}&lng=${location.longitude.toFixed(3)}&rad=${radius}&sort=dist&type=all&apikey=${apiKey}` |
| 52 | |
| 53 | let station = await loadStation(apiKey, radius, fixedLocation, myLocation) |
| 54 | let widget = await createWidget(station, brand) |