googlemaps
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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 |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
48956
187
0