ShareShortcuts

Nearby Places

Nearby Places

mrlizard
Fork “Nearby Places”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so mrlizard gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
38K
Saved
0
Actions
16
Category
API
Version
1.0
Language
EN

Nearby Places

What's New

Version 1.0

First release

Version History
1.0 Oct 19, 2022

First release

What it does

16 actions
  1. Choose from Menu
    Wich One?
  2. Choose from Menu
    Airports
  3. Get Current Location
  4. Search Local Businesses
  5. Choose from List
  6. Show in Maps
  7. Choose from Menu
    Gas Stations
  8. Get Current Location
  9. Search Local Businesses
  10. Choose from List
  11. Show in Maps
  12. Choose from Menu
    Custom
  13. Get Current Location
  14. Search Local Businesses
  15. Choose from List
  16. Show in Maps

View as code
Beta

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

See All

You Might Also Like

See All
Advertisement