ShareShortcuts

Find Hospital

This shortcut provides a list of hospitals nearest your location

rdkkt
Bifurcar “Find Hospital”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que rdkkt reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
61K
Guardado
0
Acciones
26
Categoría
Travel and Maps
Versión
1.0
Idioma
EN

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.

Novedades

Versión 1.0

First release

Historial de versiones
1.0 26 de mar. de 2020

First release

Qué hace

26 acciones
  1. Comment
    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.
  2. Text
  3. Get Current Location
  4. Set Variable
    myLocation
  5. Search Local Businesses
  6. Add to Variable
  7. Repeat with Each
  8. Getdistance
  9. Round Number
  10. Text
  11. Combine Text
  12. Text
  13. Get Dictionary from Input
  14. Get Dictionary Value
  15. Repeat with Each
  16. Count
  17. Calculate Statistics
  18. Calculate
  19. Repeat with Each
  20. Calculate
  21. Filter Files
  22. Repeat with Each
  23. Calculate
  24. Get Dictionary Value
  25. Choose from List
  26. Show Directions

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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"
})
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

También te puede gustar

Ver todo
Publicidad