Location Actions

Table of contents

  1. Get Current Location
  2. Get Location Detail
  3. Addresses
    1. Get Addresses
    2. Street Address
  4. Maps
    1. Get Halfway Point
    2. Get Maps Link
    3. Open in Maps
  5. Weather
    1. Get Current Weather
    2. Get Weather Detail
    3. Get Weather Forecast

To use actions in this category, use this include statement:

#include 'actions/location'

Get Current Location

Get current user location.

getCurrentLocation()

Get Location Detail

Get a detail about a location.

enum locationDetail {
    'Name',
    'URL',
    'Label',
    'Phone Number',
    'Region',
    'ZIP Code',
    'State',
    'City',
    'Street',
    'Altitude',
    'Longitude',
    'Latitude',
}

getLocationDetail(variable location, locationDetail detail)

Addresses

Get Addresses

Get addresses from input.

getAddresses(variable input)

Street Address

Create a location value with an address.

streetAddress(text addressLine2, text addressLine2, text city, text state, text country, number zipCode)

Maps

Get Halfway Point

Get the halfway point between two locations.

getHalfwayPoint(variable firstLocation, variable secondLocation)

Get a link for a location.

getMapsLink(variable location)

Open in Maps

Open a location in maps.

openInMaps(variable location)

Weather

Get Current Weather

Get the current weather for a location.

getCurrentWeather(text ?location = "Current Location")

Get Weather Detail

Get a detail about a weather forecast.

enum weatherDetail {
    'Name',
    'Air Pollutants',
    'Air Quality Category',
    'Air Quality Index',
    'Sunset Time',
    'Sunrise Time',
    'UV Index',
    'Wind Direction',
    'Wind Speed',
    'Precipitation Chance',
    'Precipitation Amount',
    'Pressure',
    'Humidity',
    'Dewpoint',
    'Visibility',
    'Condition',
    'Feels Like',
    'Low',
    'High',
    'Temperature',
    'Location',
    'Date',
}

getWeatherDetail(variable weather, weatherDetail detail)

Get Weather Forecast

Get various types of weather forecast for a location.

enum weatherForecastTypes {
    'Daily',
    'Hourly',
}

getWeatherForecast(weatherForecastTypes ?type = "Daily", text ?location = "Current Location")

Copyright ©. Distributed under the GPL-2.0 License. Siri Shortcuts and Mac are registered trademarks of Apple Inc. Apple is not involved in this project in any way. Do not contact Apple Support unless you are having an issue with the Shortcuts app itself.