Отсканируй на iPhone, чтобы установить
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.
Что нового
Версия 2.0
Added two more options!
Что делает
Действий: 16-
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
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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 = getListItem(List, 0)
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"
})
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от qwertyuio
Вам также может понравиться
Реклама