googlemaps
Advanced tools
Comparing version 0.1.19 to 0.1.20
@@ -519,4 +519,12 @@ var qs = require('querystring'), | ||
var maxlen = 2048; | ||
var consoleKey = config('console-key'); | ||
var path = buildUrl(path, args); | ||
if (consoleKey){ | ||
// google requires https when including an apiKey | ||
secure = true; | ||
args.key = consoleKey; | ||
} | ||
path = buildUrl(path, args); | ||
if (path.length > maxlen) { | ||
@@ -523,0 +531,0 @@ error = new Error("Request too long for google to handle (" + maxlen + " characters)."); |
{ | ||
"name": "googlemaps", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"main": "./lib/googlemaps", | ||
@@ -5,0 +5,0 @@ "description": "A simple way to query the Google Maps API from Node.js", |
22840
482