Deprecated: Return type of I::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 62

Deprecated: Return type of I::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 91

Deprecated: Return type of I::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 71

Deprecated: Return type of I::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 101

Deprecated: Return type of I::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 53

Deprecated: Return type of Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/collection.php on line 80

Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /home/public/kirby/toolkit/lib/url.php on line 135
One Tap Less | Google Maps & x-callback-url support

Google Maps & x-callback-url support


Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/public/kirby/toolkit/lib/str.php on line 506

While digging the web for hidden updates to the x-callback-url library, I found a post in Japanese mentioning Google Maps and x-callback-url. It intrigued me, so I decided to test it. Magically, it works.

If you check Launch Center Pro it will give you the following url scheme for Google Maps:

comgooglemaps://?daddr=[prompt:End]&directionsmode=driving

You can modify it slightly to support the x-callback-url parameters. This is the LCP action based on the one mentioned in the Japanese post.

comgooglemaps-x-callback://x-callback-url?x-source=LCP&x-success=launchpro://&daddr=[prompt:Where do you want to go?]&directionsmode=driving

This action will prompt you for an address and open driving directions from your current location to the input. You’ll notice in the top that you have the option to return to the app designated in your x-source parameter. You can download this action here. This is how the top of your screen will look like when you use this action:

This action probably works with the other parameters from Google Maps, as documented here. No excuse to get lost now if you’re still into Google, right?