Create URL in Shortcuts app that contains two variables

This is the URL:

https://api.tomorrow.io/v4/weather/realtime?location=[Coordinates]&units=imperial&apikey=MyAPIKey

Where `[Coordinates]' is something like `33.4.-117.5'

I can get lat and long from Get current location, but can't form them into an acceptable URL

Text action: Latitude, Longitude

then

Set variable Coordinates to Text

Doesn't work. And many other combinations, but haven't hit the right one.


I am creating the Shortcut on Mac, then running from iPhone. I can sometimes run from the Mac, but then if I try again it fails.


Am I missing how to tag this with the Shortcuts app?

iPhone 17 Pro

Posted on Dec 11, 2025 4:52 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 11, 2025 5:24 PM

I don't have access to your particular website but I simulated the same using flightradar24.com, which presents the longitude and latitude in the same format:



I ran successfully this shortcut several times on a Mac (macOS Sequoia 15.7.2) and an iPhone (iOS 26.1).

16 replies

Create URL in Shortcuts app that contains two variables

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.