Scan with your iPhone to install
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.
What's New
Version 2.0
Added two more options!
What it does
16 actions-
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
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#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 = getFirstItem(List)
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"
})
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by qwertyuio
You Might Also Like
Advertisement