Mit dem iPhone scannen, um zu installieren
Use this simple Shortcut to calculate how far your destination is. You can also pull up a route to your destination all in one! Updates are to be expected.
Neue Funktionen
Version 2.0
Added two more options!
Was er macht
16 Aktionen-
Choose from Menu
-
Choose from MenuDirections
-
Ask for InputCity or town
-
Show Directions
-
Choose from MenuDistance Calculater
-
Ask for InputCity or town
-
Getdistance
-
Show Result
-
Choose from MenuI am bored
-
List
-
Get Item from List
-
Show Directions
-
Choose from MenuNearby Parks
-
Search Local Businesses
-
Get Item from List
-
Show Directions
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#define color lightblue
#define glyph car
menu nil {
item "Directions":
const ProvidedInput = prompt("City or town")
rawAction("is.workflow.actions.getdirections", {
"WFDestination": "ProvidedInput"
})
item "Distance Calculater":
const ProvidedInput1 = prompt("City or town")
rawAction("is.workflow.actions.getdistance", {
"WFGetDirectionsActionMode": "Ask",
"WFGetDistanceDestination": "ProvidedInput1"
})
show("{} Miles")
item "I am bored":
const List = list("Columbus, OH", "Cleveland, OH", "Hocking Hills, OH")
const ItemFromList = getListItem(List, 0)
rawAction("is.workflow.actions.getdirections", {
"WFDestination": "ItemFromList",
"WFGetDirectionsActionMode": "Ask"
})
item "Nearby Parks":
rawAction("is.workflow.actions.searchlocalbusinesses", {
"WFSearchQuery": "Parks",
"WFSearchRadius": ""
})
const ItemFromList1 = getFirstItem(LocalBusinesses)
rawAction("is.workflow.actions.getdirections", {
"WFDestination": "ItemFromList1",
"WFGetDirectionsActionMode": "Ask"
})
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von qwertyuio
Das gefällt dir vielleicht auch
Werbung