Problems trying to configure google maps in email templates

abyss 8 years ago

And what is result email?

bemeto2017 8 years ago
abyss 8 years ago

You have not provided original email body. I can't help you until I see it.

bemeto2017 8 years ago

@abyss

This is the original body email:

Device: LAPA
Online
Time: 2017-09-21 13:40:27
Point: $position.latitude°, $position.longitude°

The link in the text "$position.latitude°, $position.longitude°"

https://www.openstreetmap.org/?mlat=$position.latitude&mlon=$position.longitude#map=16/$position.latitude/$position.longitude

Thanks

abyss 8 years ago

Online/offline events do not have related positions.

bemeto2017 8 years ago

@abyss

I check with ingnitionOn and ignitionOff and receive good links in OpenStreetMaps, thank you very much

Then I've tried replacing "https://www.openstreetmap.org/" with "https://www.google.com/maps/search/?api=1" and "https://www.google.com/maps/search/ " but it does not work. I guess the syntax will be different in google than in openstreetmaps.

Any idea?

Regards.

Anton Tananaev 8 years ago

Obviously syntax is different.

abyss 8 years ago
bemeto2017 8 years ago

Thanks

I got it!

Very simple, line 7:

Point: https://www.google.com/maps/search/?api=1&query=$position.latitude,$position.longitude

in this way I receive an email with the link that my smartphone opens directly the app google maps in the location of the device. also its possible open in the browser. It's great!

Regards

Macan 6 years ago

Hi,

Is it possible that on email template make google map redirecting hyperlink via the address text? So when I receive geofence exit information email with address where the device is exited geofence, by clicking on that address it redirects me to the google map?