Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

googlemaps

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

googlemaps - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "googlemaps",
"version": "1.0.0",
"version": "1.0.1",
"main": "lib/index",

@@ -5,0 +5,0 @@ "description": "A simple way to query the Google Maps API from Node.js",

@@ -44,13 +44,21 @@ [![Build Status](https://travis-ci.org/moshen/node-googlemaps.svg)](https://travis-ci.org/moshen/node-googlemaps)

```javascript
var config = {
var publicConfig = {
key: '<YOUR-KEY>',
google_client_id: '<YOUR-CLIENT-ID>', //optional
stagger_time: 1000, // for elevationPath
encode_polylines: false,
secure: true, // use https
proxy: 'http://127.0.0.1:9999', // optional, set a proxy for HTTP requests
google_private_key: '<YOUR-PRIVATE-KEY>' // to use Google Maps for Work
proxy: 'http://127.0.0.1:9999' // optional, set a proxy for HTTP requests
};
var gmAPI = new GoogleMapsAPI(publicConfig);
var gmAPI = new GoogleMapsAPI(config);
// or in case you are using Google Maps for Work
var enterpriseConfig = {
google_client_id: '<YOUR-CLIENT-ID>', // to use Google Maps for Work
google_private_key: '<YOUR-PRIVATE-KEY>', // to use Google Maps for Work
stagger_time: 1000, // for elevationPath
encode_polylines: false,
secure: true, // use https
proxy: 'http://127.0.0.1:9999' // optional, set a proxy for HTTP requests
};
var gmAPI = new GoogleMapsAPI(enterpriseConfig);

@@ -57,0 +65,0 @@ // geocode API

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc