Mit dem iPhone scannen, um zu installieren
This shortcut provides a list of hospitals nearest your location. After choosing from the list, it returns driving directions via the maps provider you selected. The text field below defines the search radius in miles. The list is sorted by distance.
Neue Funktionen
Version 1.0
First release
Was er macht
26 Aktionen-
CommentThis shortcut provides a list of hospitals nearest your location. After choosing from the list, it returns driving directions via the maps provider you selected. The text field below defines the search radius in miles. The list is sorted by distance.
-
Text
-
Get Current Location
-
Set VariablemyLocation
-
Search Local Businesses
-
Add to Variable
-
Repeat with Each
-
Getdistance
-
Round Number
-
Text
-
Combine Text
-
Text
-
Get Dictionary from Input
-
Get Dictionary Value
-
Repeat with Each
-
Count
-
Calculate Statistics
-
Calculate
-
Repeat with Each
-
Calculate
-
Filter Files
-
Repeat with Each
-
Calculate
-
Get Dictionary Value
-
Choose 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.
#include 'actions/location'
#define color red
#define glyph ambulance
/*
This shortcut provides a list of hospitals nearest your location. After choosing from the list, it returns driving directions via the maps provider you selected. The text field below defines the search radius in miles. The list is sorted by distance.
*/
const radius = "20"
getCurrentLocation()
@myLocation
rawAction("is.workflow.actions.searchlocalbusinesses", {
"WFInput": "@myLocation",
"WFSearchQuery": "Hospital",
"WFSearchRadius": ""
})
@List
const RepeatResults = for _ in @List {
rawAction("is.workflow.actions.getdistance", {
"WFGetDirectionsActionMode": "Driving",
"WFGetDirectionsCustomLocation": "@myLocation",
"WFGetDistanceDestination": "@RepeatItem"
})
const distance = ceil(Distance, "Ones Place")
}
joinText(RepeatResults, ",")
const Text = "{{}}"
const Dictionary = getDictionary(Text)
const DictionaryValue = getKeys(Dictionary)
const RepeatResults1 = for _ in DictionaryValue {
count(@RepeatItem, "Characters")
}
const Maximum = statistic("Maximum", nil)
const scaleFactor = Maximum … nil
const RepeatResults2 = for _ in DictionaryValue {
}
const Files = filterFiles(RepeatResults2, "Name", "A to Z")
const RepeatResults3 = for _ in Files {
}
const ChosenItem = chooseFromList(RepeatResults3)
rawAction("is.workflow.actions.getdirections", {
"WFDestination": "ChosenItem",
"WFGetDirectionsActionApp": "Maps"
})
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
Das gefällt dir vielleicht auch
Werbung