watsonx Assistant

watsonx Assistant

Conversational AI for fast and friendly customer care

 View Only
Expand all | Collapse all

How can I add a google maps embedded Iframe that uses my location (after asking for it) and shows the directions to a designated location?

  • 1.  How can I add a google maps embedded Iframe that uses my location (after asking for it) and shows the directions to a designated location?

    Posted 01/21/25 11:06 AM

    I know how to do a google maps embedded Iframe for a location or any two locations (previously known) but I don't know how to make a google maps embedded Iframe with a user's location (still unknown until the user accepts) and another known location. I searched and found a code that finds current location on a div map. i dont know how to integrate it with the Iframe INSIDE the watsonx asisstant. I don't even know if the code i found can be used. It is very hard to find tutorials where I need to use javascript alongside watsonx assistant to get what I want. and the documentation is really vague and just sends links to the javascript code that are not curated for the watsonx assistant. I need help with this please. and I don't want a link to a documentation that doesn't tell me how to add it to my watsonx assistant. Here is the code I found and I dont know if it's useful. https://developers.google.com/maps/documentation/javascript/examples/map-geolocation 




    ------------------------------
    Nada Hantsh
    ------------------------------


  • 2.  RE: How can I add a google maps embedded Iframe that uses my location (after asking for it) and shows the directions to a designated location?

    Posted 12/31/25 09:15 AM
    Edited by Philippe ComteIcam 12/31/25 09:58 AM

    Hello Nada

    Did you make any progress on that topic ?

    It works on the demo site Lendyr.com. 


    Thank you .



    ------------------------------
    Philippe ComteIcam
    ------------------------------



  • 3.  RE: How can I add a google maps embedded Iframe that uses my location (after asking for it) and shows the directions to a designated location?

    Posted 02/05/26 09:11 AM

    Hello Philippe 

    I did make progress.

    On the Lendyr.com site there's a small button that links to the GitHub repository of all the Lendyr features and specifications used. When I clicked on it, I found the code I needed for the google maps integration with Watsonx Assistant and it's very different from the tutorials in the documentation in both google maps and Watsonx Assistant. I am quite shocked the Watsonx documentation links google maps documentation instead of this very useful Github repository. And it doesn't link it for any other tutorial either. Just the Lendyr site links it. If possible, make it accessible and easier to reach so anyone having difficulty working with Watsonx Assistant can benefit from it. 



    ------------------------------
    Nada Hantsh
    ------------------------------