This is more an adobe question. I think the answer is here: https://helpx.adobe.com/acrobat/kb/link-html-pdf-page-acrobat.html
So it seems you can just use the href HTML.
Create the string with the URL. Example: <a href=" https://www.google.com/maps/place/16818+Ramsey+Road,++Crosby,+TX77532firstname.lastname@example.org,-95.050741,17z">goto Google</a>
Then create the documenttemplate where you show this string. Make sure that the Render XHTML is set to true in the properties of the string on the document template.
See the below image. Here I am using a variable called MapURL. This variable gets the Map link of the DeliverAddress. Now, when I use this template I am getting the total link address like "https://www.google.com/maps/place/16818+Ramsey+Road,++Crosby,+TX77532email@example.com,-95.050741,17z". Now Instead of this link I want to replace this link with a text like "I am a Map URL." which is clickable. When I click on this text, It should open the above link. Hope I am clear.