MCPcopy Index your code
hub / github.com/Necriso/ScriptableWidgets / apiURL

Function apiURL

tankstellenpreise.js:51–51  ·  view source on GitHub ↗
(location, radius, apiKey)

Source from the content-addressed store, hash-verified

49const textColor = Color.dynamic(new Color('000000'), new Color('EDEDED'));
50
51const 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
53let station = await loadStation(apiKey, radius, fixedLocation, myLocation)
54let widget = await createWidget(station, brand)

Callers 1

loadStationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected