How to open Google Maps app with GPS coordinates (stored as a variable)?

rgf

New member
Im a newbie to macrodroid, so any help would be greatly appreciated.

I have created a macro which, when it receives an sms message from a gps tracking device, it extracts and rearranges the coordinates into a format recognized by Google Maps. I would like Macrodroid to automatically open Google Maps to the place of the coordinates.

Heres what Ive tried so far (but they are not ideal):

1) I get the macro to send an sms to myself with the coordinates prefixed by Google's url (e.g. https://www.google.co.uk/maps/place/N53.261023,W1.39156). When I receive the sms, the entire text is shown as one long hyperlink. which I can click on.. and open in the Google maps app.

2) I can get the macro to end with a 'display dialog' box whowing the full URL, but unfortunately, it is not a clickable hyperlink.

Any suggestions woudl be great! many thanks!
 

FrameXX

Well-known member
Hi newbie!

You can directly open google maps with certain location using "send intent" action.

Use setup like it is done on screenshot.

Now you just need to replace "data" field with variable that contains link you received and not static link, like I have done.

Is this what you wanted?
 

Attachments

  • Screenshot_20210309-175633.png
    Screenshot_20210309-175633.png
    91.4 KB · Views: 49

rgf

New member
Yep, thats exactly what I wanted! The screenshot was very helpful too as without it, I probably would have spent hours trying to work out how to configure it. Thanks very much for your help!
 
Top