ShareShortcuts

I’m Traveling

Use Siri to get a route overview and view it in Maps

blackhatteam
Создать форк «I’m Traveling»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы blackhatteam получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
32K
Сохранено
0
Действия
28
Категория
Travel and Maps
Версия
1.0
Язык
EN

Use Siri to get a route overview and view it in Maps.

The shortcut will get an overview of the route from the Bing search website and use the ChatGPT app to generate the result.

Activate the shortcut with "Hey Siri: I'm Traveling"

  • provide the city and state you are traveling to.
  • you can also provide a specific place, like Yellowstone National Park.

You will get an overview of options (if more than one) and are then asked if you want to choose a route. If you say Yes, the shortcut will open the Maps app.

*The ChatGPT app is required for this shortcut.

*Make sure "While Using the App" is selected in Settings - Location Services - Safari Websites. You can also go to bing.com to enable location permissions.

Что нового

Версия 1.0

First release

История версий
1.0 20 июн 2023 г.

First release

Что делает

Действий: 28
  1. Get File
  2. If
  3. Create Folder
  4. Show Alert
  5. Open URLs
  6. Wait
  7. Text
  8. Close Tab
    com.apple.mobilesafari
  9. Go to Home Screen
  10. Show Alert
  11. Text
  12. Speak Text
  13. Dictate Text
  14. Text
  15. URL
    https://www.bing.com/search?q=…
  16. Get Contents of Web Page
  17. Ask ChatGPT
  18. Text
  19. Speak Text
  20. Wait
  21. Text
  22. Speak Text
  23. Dictate Text
  24. If
  25. Show Directions
  26. If
  27. If
  28. Stop This Shortcut

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#define mac false
#include 'actions/web'
#include 'actions/documents'
#define color darkblue
#define glyph car

const File = getFileFromFolder(, "Travel", false)

if !File {
	createFolder("Travel")
	confirm("Run Initial Setup? ")
	openURL("http://www.blackhatteams.com/p/travel.html")
	wait(6)
	const Text = "Travel"
	rawAction("com.apple.mobilesafari.CloseTab", {
		"AppIntentDescriptor": "",
		"target": "Text"
	})
	returnToHomescreen()
	confirm("Setup Complete! Run Shortcut?")
}
speak()
const DictatedText1 = listen()
url("https://www.bing.com/search?q={}")
getWebpageContents()
rawAction("com.openai.chat.AskIntent", {
	"AppIntentDescriptor": "",
	"ShowWhenRun": false,
	"newChat": true,
	"prompt": "Provide an answer using this page: \\\"{}\\\""
})
speak()
wait(1)
speak()
const DictatedText = listen()

if DictatedText == "Yes" {
	rawAction("is.workflow.actions.getdirections", {
		"WFDestination": "DictatedText1",
		"WFGetDirectionsActionApp": "Maps"
	})
} else {
	if DictatedText == "No" {
		stop()
	}
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от blackhatteam

См. все

Вам также может понравиться

См. все
Реклама