I am using node-googlemaps to query Google Maps APIfrom Node js. I created my server API as a developer. According to this documentation, I have to make a variable publicConfigwith my API key and some other parameters. My publicConfig variable is as follows:
var gm = require('googlemaps');
var publicConfig = {
key: 'myKey',
stagger_time:1000,
encode_polylines:false,
secure:true
};
var gmAPI = new GoogleMapsAPI(publicConfig);
When I run the code, I get the following error
ReferenceError: GoogleMapsAPI is not defined
Can someone help me on this?
source
share