Scanne avec ton iPhone pour installer
Nearby Places
Nouveautés
Version 1.0
First release
Ce qu’il fait
16 actions-
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
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#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)
}
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de mrlizard
Ça pourrait aussi te plaire
Publicité