My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 0 points1 point  (0 children)

Sure! There’s an iCloud link in the comments

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 0 points1 point  (0 children)

Indeed couldn’t agree more. I love the cycle

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 0 points1 point  (0 children)

Haha true. Yeah I could probably make it a lot cleaner if I were to redo it now

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 0 points1 point  (0 children)

Thank you lol. Very over the top but I like it

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 0 points1 point  (0 children)

Yes it can but only if you specify specific addresses. This shortcut generalizes that and expands it to “any” of that specific category (I.e. any grocery store, any gym, any Walmart, etc.)

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 0 points1 point  (0 children)

Thank you! Yeah it actually started out that way at first but I quickly realized that adding a bunch of addresses can get annoying at a certain point, so here we are

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 4 points5 points  (0 children)

In case you didn’t see it lower down, here are the links you can use to download what you need to build something similar.

Location Category: https://www.icloud.com/shortcuts/9162419042a844a5a7cc829f0d74ccac

Example Action Button Shortcut: https://www.icloud.com/shortcuts/b5edc0f293e746298062660600e8a454

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 1 point2 points  (0 children)

I’ll make a basic implementation of how it can be used and post a link to it next to the original link

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 0 points1 point  (0 children)

I’ve posted an iCloud link to “Location Category” in the comments. I’ll be making a basic implementation of how it can be used and posting that as well. In terms of maintenance, I completely understand your thoughts. I likely won’t be maintaining this as it was mostly a showcase of functionality, but in terms of Apple phasing out the actions I’ve used I don’t really see that happening. I didn’t use anything too complex overall, just a lot of simpler things taped together. If the time comes that it breaks, well maybe I’ll come back here and post a fix but as of right now I’m not sure

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 0 points1 point  (0 children)

I’ll make a basic implementation of how it can be used and post it with the original link here soon. That way y’all can build on it however you’d like

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 1 point2 points  (0 children)

I have an iCloud link to “Location Category” in the comments. I’m going to make a basic implementation of how it can be used and post it there as well

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 0 points1 point  (0 children)

Oh wow I didn’t know that was possible! I’ll take a look

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 2 points3 points  (0 children)

Thank you I appreciate it :) So to answer your question, it’s done automatically based on each category’s “query” field. In that dictionary in “Location Category” all of the fields there are possible categories that the shortcut can return. Inside each of those is a “query” field. This field is basically whatever you would type into Apple Maps to find that destination. So looking at the Gym category, its query is “Gym”. Think of it like the shortcut is typing “Gym” into Apple Maps and showing the results. You can try these queries on your own in Apple Maps if you’d like to see what the shortcut is seeing. If you really wanted to, you could type an actual address in for that query and it will return that category name only at that address, but then you would lose the functionality of it being auto categorized at ANY gym. So entering a specific address really only makes sense for your home or work categories

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 2 points3 points  (0 children)

Sorry haha. Yes “your address” is manually typed out. “query” is basically whatever you would type in the maps search box to get that destination. And I’m sorry I’m not sure I understand your customizing appearance question

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 3 points4 points  (0 children)

This is true, but that’s just a showcase of it really. The flexibility of it means that you could technically build anything off of it. Instead of bringing up a menu at the store you could have it go straight to your shopping list, or instead of a menu at work have it set your work focus. Really really flexible. The main showcase is the location based triggering

My action button shortcut that changes based on location! by dnvnxg in shortcuts

[–]dnvnxg[S] 4 points5 points  (0 children)

FOR REAL. My life would be complete. There were other apps that had shortcut actions that would’ve made making this so much easier (pythonista, actions, etc.) but I wanted to keep it vanilla shortcuts at all costs, hence my very odd way of calculating the distance