Mit dem iPhone scannen, um zu installieren
Nearby Places
Neue Funktionen
Version 1.0
First release
Was er macht
16 Aktionen-
Choose from MenuWich One?
-
Choose from MenuAirports
-
Get Current Location
-
Search Local Businesses
-
Choose from List
-
Show in Maps
-
Choose from MenuGas Stations
-
Get Current Location
-
Search Local Businesses
-
Choose from List
-
Show in Maps
-
Choose from MenuCustom
-
Get Current Location
-
Search Local Businesses
-
Choose from List
-
Show in Maps
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#include 'actions/location'
#define color darkblue
#define glyph airplane
menu "Wich One?" {
item "Airports":
const CurrentLocation = getCurrentLocation()
rawAction("is.workflow.actions.searchlocalbusinesses", {
"WFInput": "CurrentLocation",
"WFSearchQuery": "Airports"
})
const ChosenItem = chooseFromList(LocalBusinesses, "Nearby Airports")
openInMaps(ChosenItem)
item "Gas Stations":
const CurrentLocation1 = getCurrentLocation()
rawAction("is.workflow.actions.searchlocalbusinesses", {
"WFInput": "CurrentLocation1",
"WFSearchQuery": "Gas Stations"
})
const ChosenItem1 = chooseFromList(LocalBusinesses1, "Nearby Gas Stations")
openInMaps(ChosenItem1)
item "Custom":
const CurrentLocation2 = getCurrentLocation()
rawAction("is.workflow.actions.searchlocalbusinesses", {
"WFInput": "CurrentLocation2",
"WFSearchQuery": "{Ask}"
})
const ChosenItem2 = chooseFromList(LocalBusinesses2, "Nearby ")
openInMaps(ChosenItem2)
}
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 mrlizard
Das gefällt dir vielleicht auch
Werbung