Skip to content

Instantly share code, notes, and snippets.

View matmuenzel's full-sized avatar
😡

Matthias Münzel matmuenzel

😡
  • 247GRAD GmbH
  • Deutschland
  • 22:18 (UTC +01:00)
View GitHub Profile
@matmuenzel
matmuenzel / Corona-Indicies
Created October 22, 2020 06:53
Corona-Indicies-Scriptable
// Forked from Keven Kub.
// See https://gist.github.com/kevinkub/46caebfebc7e26be63403a7f0587f664
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
const apiUrl = ({ longitude, latitude }) =>
`https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=GEN,cases7_per_100k&geometry=${longitude.toFixed(3)}%2C${latitude.toFixed(3)}&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelWithin&returnGeometry=false&outSR=4326&f=json`;
const widget = await createWidget();
if (!config.runsInWidget) {
curl -X POST -H "Content-Type: application/json" -d '{
"persistent_menu":[
{
"locale":"default",
"composer_input_disabled":false,
"call_to_actions":[
{
"type":"postback",
"title":"Sample action",
"payload": "random payload, lel"