Last Updated: February 25, 2016
·
883
· carlosefonseca

Bookmarklet to open maps.google coordinates on Maps.app

If an app opens a maps.google.com url on Safari with a place with coordinates, like
https://maps.google.com/?q=Edif%C3%ADcio+na+Avenida+da+República,+n.º+15+a+15+-+A%4038.735533,-9.145400
use this bookmarklet to open the coordinates on the native Maps.app, so you can use turn by turn or send it to some other app.

javascript:window.location.href=window.location.href.replace(%22https%22,%22maps%22).replace(/q=.+(\d\d\.\d+)/,"q=$1")

It replaces the "http" with "maps" to open the app and removes the text before the coordinate so Maps.app shows the location instead of trying to find something.

I use this to open links from the yet-to-be-updated geocaching app on the Maps app and the navigate to the place using TomTom.