By now you have realized that the latest version of the Workflow App no longer has deep integration to Google Maps. That's not too big a deal, since you can make do with the Workflow Open URLs function. Here's how...
I prefer Google Maps because Apple Maps is really bad in my country. So, here are the shortcuts I've created using a Workflow menu, to drive to:
- Office
- Home
- Contact Address
- Meeting Location
Navigate to a fixed location like Office / Home
This is easy, I just put:
- A Text action in the Google Maps URL format.
- Finish up with Open URLs.
comgooglemaps://?daddr=googlepex+mountain+view&directionsmode=driving&views=traffic
where:
daddr
= destination address, either as a name (replace spaces with+
, or use the URL Encode function as described later) or as co-ordinates, e.g.37.4220041,-122.0862462
.saddr
= I left this out so that the route would start at "my location"directionsmode
= driving, transit, walking, and bicycling too!views
= satellite, traffic, or transit
Navigate to a Contact Address
Not too difficult either:
- Start with Select Contact.
- Then use Get Details of Contacts with Get
Street Address
. - I add Count of
Items
. - So that If the count
Is Greater Than
0
- Then Get Variable
Details of Contacts
(a Magic Variable using to the output of Step 2 above) . - Followed by Choose from List to chose one address (even if there is only one, it'll still show it for confirmation).
- And use URL Encode to
encode
(i.e. escape) the address. - Finally, Text with the following, replacing `[[URL Encoded Text]] with the appropriate Magic Variable.
- Then use Open URLs to open the URL above in Google Maps.
- Then Get Variable
comgoolgemaps://?daddr=[[URL Encoded Text]]&directionsmode=driving&views=traffic
- Otherwise, I did Get Variable
Contact
(Magic Variable from step 1) - And finally, Open In... to open the in the App
Contact
Here's what it looks like:
As a side note, if you run these in a today widget, you may wish to start with Continue Workflow In App so that the Choose from List has more details rather than just a single line name in the Widget.
Navigate to a Meeting Location
More fun!
- Start with Find Calendar Events Where,
Start Date
is today
,sort by
Start Date
Oldest First
- Then Choose from List
- Use Get Details of Calendar Events to Get
Location
. - I add Count of
Items
. - So that If the count
Equals
1
- Then Get Variable
Details of Calendar Events
(a Magic Variable using to the output of Step 3 above) - And use URL Encode to
encode
(i.e. escape) the address. - Finally, Text with the following, replacing `[[URL Encoded Text]] with the appropriate Magic Variable.
- Then use Open URLs to open the URL above in Google Maps.
- Then Get Variable
comgoolgemaps://?daddr=[[URL Encoded Text]]&directionsmode=driving&views=traffic
Conclusion
I have shown how to use Workflow to the Google Maps app despite lack of native support. The magic is in the form of URL Schemes.
In addition, Google Maps supports the x-callback-url specification which enable Google Maps to show a button at the top of the screen to "callback" to a URL specified, i.e. to open another app via its URL.
I've not tested, but apparently Waze (waze://?ll=[[latitude]],[[longitude]]&navigate=yes
) and Here Maps by Nokia (here-route://[[latitude]],[[longitude]]
) are similar. References: iOS API documentation for Waze and unofficial information at Stack Overflow.
Just Google for the URL Schemes of specific apps (I can't find a definitive list).
Updated 23 Sep: With many thanks to JD S. for the correction he emailed on 30 Aug!