Using Workflow to get map images of locations

We just got back from vacation. By just I mean last weekend, but I may still be in denial that it’s over. I haven’t had a lot of time since, though, to write much, so I am working on that. In the meantime, I thought I’d just share a simple little workflow I sometimes find useful for saving locations.

There are plenty of ways to share your location with others these days, be it through the recently added features in Google Maps, the built-in options in Apple Messages, or some other service such as Glympse. There are also plenty of ways to save locations, using apps like Swarm (Foursquare) or, one of my favorites, Rego (more on that in the future, probably). Though not created specifically for saving locations, Day One is also a great app here, with its quick and easy Check-in feature, and ability to add location to a journal entry’s metadata. Usually, if I am saving a location, it is going to be by taking the location data from a photo using Rego, or creating a Day One journal entry. Sometimes, however, I want more than just a location’s coordinates, or a link to open it in Maps. Sometimes, I want to have a map image of the location.

While I could certainly take a screenshot in whatever map app I happen to be using, that requires cropping and potentially more. I want something I can access easily, tap, and get a map image of my current location, without having to tell it anything. Luckily Workflow provides a very simple way to get this, thanks to its ContentKit framework. When you pass input to an action in Workflow, that action will process the input based on the type of input it is expecting or capable of receiving. If you pass a photo into the Get Text from Input action, the output obviously wont be the photo. Workflow knows you want text, so it gets the only text associated with the input: the file name of the photo.

You might see where I’m going with this: Using this same concept, we can pass a location into the Get Images from Input action in a workflow. The only image that would be associated with location data, at least as far as Workflow is concerned, is a map image of that location, and so that is what it gives you. This means we can simply use the Get Current Location action, followed by Get Images from Input to get our map image for the current device location. You can use Workflow’s magic variables system to easily construct some more details, if you would like to share or save the image along with a location name, coordinates, or perhaps a Maps or Google Maps link.

Here is a simple version of the workflow that gets the map image and then lets you share it. Here is what the output looks like:

The workflow results in an image of a map of the current location.

If you have any questions about setting the workflow up for more specific scenarios or run into trouble with it, feel free to reach out to me.

2 thoughts on “Using Workflow to get map images of locations”

  1. Question from TOTAL BEGINNER with workflow: I would like to know how to modify the MAP IMAGE workflow to save the image with a location name. I am stuck and would love to hear how to do this.

    1. Thanks for the comment. Are you wanting to set the location name as the file name of the image? You can add a Set Name action after Get Images from Input. In the Name field, insert the Get Current Location magic variable (found in the row above the keyboard). After that is inserted, you can tap on the variable within the Set Name field. This will show a list of data types in place of the keyboard and you can select from street name, city, coordinates, and more. Selecting the Name option won’t help much but if you want to use either the city or street name, you could certainly do that. As an example: https://workflow.is/workflows/cd2e8f8aaeff4ddfb979753601f65f61

Leave a Reply

Your email address will not be published. Required fields are marked *