MCPcopy Create free account
hub / github.com/Necriso/ScriptableWidgets / apiURL

Function apiURL

guenstigsteTankstelleAT.js:27–27  ·  view source on GitHub ↗
(location, fuelType)

Source from the content-addressed store, hash-verified

25const textColor = Color.dynamic(new Color('000000'), new Color('EDEDED'));
26const greyTextColor = Color.dynamic(new Color('000000'), new Color('BBBBBB'))
27const 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
29let station = await loadStation(fuelType)
30let widget = await createWidget(station, fuelType)

Callers 1

loadStationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected