Javascript – Getting error: "o.map is not a function" when using google maps distance matrix api in Node.js
I'm using the Google Maps API Node Client and calling the distancematrix function, but I'm getting an error that says o.map is not a function. const {Client} = require("@googlemaps/google-maps-services-js") const client = new Client client.distancematrix({ params: { origins: '40,40', destinations:…