Show Directions / ShowDirections (internally is.workflow.actions.getdirections)

This action requires that Shortcuts has permission to use WFURLOpenResource.

description

summary

Open directions to the location passed into this action in your choice of Maps, Google Maps, Citymapper, Transit, or Waze. For example, you can use this action to get directions to an upcoming event on your calendar.

input

The destination address

usage

ShowDirections app=("Maps" | "Google Maps" | "Waze") mode=("string" | variable)]

arguments


app: Maps App (Docs)

Default Value: "Maps" Allows Variables: true

Accepts a string or variable containing one of the options:

  • Maps
  • Google Maps
  • Waze

mode: Picker (Docs)

Default Value: Driving Allows Variables: true

Only enabled if: argument WFGetDirectionsActionApp == Maps or Google Maps or Baidu Maps

	Accepts a string or variable containing the option. Check the shortcuts app for a list of available options. 

source json (for developers)

{
	"ActionClass": "WFGetDirectionsAction",
	"ActionKeywords": [
		"get",
		"maps",
		"search",
		"query",
		"place",
		"location",
		"find",
		"waze",
		"google",
		"transit",
		"citymapper"
	],
	"Category": "Location",
	"Description": {
		"DescriptionInput": "The destination address",
		"DescriptionSummary": "Open directions to the location passed into this action in your choice of Maps, Google Maps, Citymapper, Transit, or Waze. For example, you can use this action to get directions to an upcoming event on your calendar."
	},
	"Input": {
		"Multiple": false,
		"Required": true,
		"Types": [
			"NSString",
			"CLLocation",
			"MKMapItem"
		]
	},
	"InputPassthrough": true,
	"Name": "Show Directions",
	"Parameters": [
		{
			"Class": "WFMapsAppPickerParameter",
			"DefaultValue": "Maps",
			"Key": "WFGetDirectionsActionApp",
			"Label": "App",
			"SupportedApps": [
				"Maps",
				"Citymapper",
				"Google Maps",
				"Transit",
				"Waze",
				"Baidu Maps"
			]
		},
		{
			"Class": "WFDynamicEnumerationParameter",
			"DefaultValue": "Driving",
			"Key": "WFGetDirectionsActionMode",
			"Label": "Mode",
			"RequiredResources": [
				{
					"WFParameterKey": "WFGetDirectionsActionApp",
					"WFParameterValues": [
						"Maps",
						"Google Maps",
						"Baidu Maps"
					],
					"WFResourceClass": "WFParameterRelationResource"
				}
			]
		}
	],
	"RequiredResources": [
		"WFURLOpenResource"
	],
	"Subcategory": "Maps",
	"UserInterfaces": [
		"WatchKit",
		"UIKit",
		"UIKitWidget"
	]
}