I'm sorry but there is no document/window in the JS code that I've coded as a library (not sure where you see it). The JS code has this among other lines of code: "var service = new google.maps.DistanceMatrixService();" I created a new server script and just have one JS line in it: initial...
Hi, I'm not seeing how adding the JS code in Library would help. I created a new library and wrote two JS functions there: initialize() & callback(). initialize() contains the call to google API among few other lines: "var service = new google.maps.DistanceMatrixService();" I created a...
I'm trying to create a server code to call Google API (DistanceMatrix Service). But I'm getting an error: "google is not defined ( @ 6 : 18 ) - var service = new google.maps.DistanceMatrixService();" For a browser page, I would code window.onload or code a script to load https://maps.googl...