Function
apiURL
(location, radius, apiKey, oilType)
Source from the content-addressed store, hash-verified
| 30 | const greyTextColor = Color.dynamic(new Color('000000'), new Color('BBBBBB')) |
| 31 | |
| 32 | const apiURL = (location, radius, apiKey, oilType) => `https://creativecommons.tankerkoenig.de/json/list.php?lat=${location.latitude.toFixed(3)}&lng=${location.longitude.toFixed(3)}&rad=${radius}&sort=price&type=${oilType}&apikey=${apiKey}` |
| 33 | |
| 34 | let station = await loadStation(apiKey, radius, oilType) |
| 35 | let widget = await createWidget(station) |
Tested by
no test coverage detected