Map in email template not usable

Hi everyone.

Im using a lat/long column [location] in an email template.

This: "<<[location]>> " brings up an image of the map in different sizes as explained here:

The problem I have is that when the image is clicked on, it opens a static map of the location, meaning I cannot zoom or navigate around to know where exactly is the location.

Does anyone know how to avoid this, and just get a clickable link to google maps?

Or else how to create a clickable link for the template?
I tried https://www.google.com/maps/place/<<[Ubicaciรณn]>>
When clicking on the link It opens up google maps but it doesnt go to the location. It seems the same behavior happening on the link on this comment.

Although if the URL in the email is copied and pasted in a browser it does work properlly and redirects the map to the actual locationโ€ฆ
This is an example URL: https://www.google.com/maps/place/18.521849, -89.446721

Solved Solved
0 10 599
  • UX
1 ACCEPTED SOLUTION

Solved it.

Google docs was forcing a link to be generated in the template, i had to eliminate this format in the first place, because the email generates another link, so this means a duplicate search URL (you can see this in my previous post screenshot).

Also I had to use SUBSTITUTE() to delete the extra spaces from the URL.

Thanks @tsuji_koichi for your guidance.

View solution in original post

10 REPLIES 10

Did you check google map URL documentation?

I believe the things you want to achieve are well documented right there.

Thank you @tsuji_koichi I did that, and still I cant make it work.
The link in my email looks just like those in the Google Dev โ€œMap URLโ€ link you shared.

Heres what it looks like on the Google instructions:

This is what the workflow generated link looks like:
https://www.google.com/maps/search/?api=1&query=18.521850,-89.446720

I cant tell whatยดs wrong.

The only weird thing is that when I click on the workflow link, it seems if first goes to a website called mandrillapp?ยฟ which then redirects to google maps.

And when I copy the link from the workflow and paste it somewhere else I get this:
(https://mandrillapp.com/track/click/30578143/www.google.com?p=eyJzIjoiVGs2aHEtaFptVDhhaDJ3cWFWbHhYSl...)

It appears to me the parameter value for lat long, doing something wrong to you.

Your URL string does not include space after comma to split values of lat and long.

https://www.google.com/maps/search/?api=1&query=18.521850,-89.446720

I simply add a space after comma, then it shoud work.

https://www.google.com/maps/search/?api=1&query=18.521850, -89.446720

You may need to add space when you construct the Google Map Webhook.

Thanks @tsuji_koichi,
I did have it like that at first, it didnt work either. I tried using ENCODEURL first and SUBSTITUTE([Location],โ€ โ€œ,โ€โ€) later to try without the space but that didnt work either.

I tried again with the space as you suggested but nothing happenning.
when clicking on the link Google Maps opens up with a โ€/โ€œ in the search term.

Im guessing the lat/long value is lost during the redirection from this mandrillapp website ?

3X_d_b_dbf8fa1d702ddf0b11285e86596d1860d53719df.gif

โ€œhttps://www.google.com/maps/search/?api=1&query=โ€&encodeurl([Latlong])

โ€œhttps://www.google.com/maps/search/?api=1&query=โ€&[Latlong]

I tested with two different expressions to construct URL. With or without ENCODEURL() expression did not bring any different, both expression returned the expression which is clickable and jump to the Google Map with the latlong position as being passed as params.

Working no problem on my environment.

Thanks @tsuji_koichi

Do you mind trying the link from my template?

https://docs.google.com/document/d/1QuVzbQLNLhVc-YWFvDFv9w8GFXjqS66c-nzw6M9uykg/edit

I can also send you the email so you can try an actual link.

Test and try with template by hitting create. Thatโ€™s boiler plate template. Worth testing with it first . And I donโ€™t know your problem is coming from template or not.

Thanks again @tsuji_koichi

Tested it, the latlong is generated correctly.
Is this what you meant I should check?

Solved it.

Google docs was forcing a link to be generated in the template, i had to eliminate this format in the first place, because the email generates another link, so this means a duplicate search URL (you can see this in my previous post screenshot).

Also I had to use SUBSTITUTE() to delete the extra spaces from the URL.

Thanks @tsuji_koichi for your guidance.

Good to hear you solved the problem, whichi is most important.

Top Labels in this Space