I’m trying to decode a Json response into base64 to use the response in a route trace, I’m using Google’s route API call Ver trajeto | Routes API | Google for Developers
and I tried to use and convert the code from this topic [Solved] how do I base64 encode an image? , I’m using this code in the webviwer and for encoding it works fine, when I change abot to atob I can’t get the code decoded.
I don’t get anything back, for coding the coded response works wonderfully well, how can I run it or is there another way to run this code