Nearby Places
What's New
Version 1.0
First release
What it does
16 actions-
Choose from MenuWich One?
-
Choose from MenuAirports
-
Get Current Location
-
Search Local Businesses
-
Choose from List
-
Show in Maps
-
Choose from MenuGas Stations
-
Get Current Location
-
Search Local Businesses
-
Choose from List
-
Show in Maps
-
Choose from MenuCustom
-
Get Current Location
-
Search Local Businesses
-
Choose from List
-
Show in Maps
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/location'
#define color darkblue
#define glyph airplane
menu "Wich One?" {
item "Airports":
const CurrentLocation = getCurrentLocation()
rawAction("is.workflow.actions.searchlocalbusinesses", {
"WFInput": "CurrentLocation",
"WFSearchQuery": "Airports"
})
const ChosenItem = chooseFromList(LocalBusinesses, "Nearby Airports")
openInMaps(ChosenItem)
item "Gas Stations":
const CurrentLocation1 = getCurrentLocation()
rawAction("is.workflow.actions.searchlocalbusinesses", {
"WFInput": "CurrentLocation1",
"WFSearchQuery": "Gas Stations"
})
const ChosenItem1 = chooseFromList(LocalBusinesses1, "Nearby Gas Stations")
openInMaps(ChosenItem1)
item "Custom":
const CurrentLocation2 = getCurrentLocation()
rawAction("is.workflow.actions.searchlocalbusinesses", {
"WFInput": "CurrentLocation2",
"WFSearchQuery": "{Ask}"
})
const ChosenItem2 = chooseFromList(LocalBusinesses2, "Nearby ")
openInMaps(ChosenItem2)
}
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 mrlizard
You Might Also Like
Advertisement