googlemaps
Advanced tools
Comparing version 0.1.15 to 0.1.16
@@ -153,3 +153,4 @@ var qs = require('querystring'), | ||
// departureTime and arrivalTime must be passed as UNIX timestamp => Math.floor((new Date()).getTime()/1000) | ||
exports.directions = function(origin, destination, callback, sensor, mode, waypoints, alternatives, avoid, units, language, departureTime, arrivalTime) { | ||
exports.directions = function(origin, destination, callback, sensor, mode, waypoints, alternatives, avoid, units, language, departureTime, arrivalTime, region) { | ||
var args = { | ||
@@ -189,2 +190,3 @@ 'origin': origin, | ||
if (language) args.language = language; | ||
if (region) args.region = region; | ||
args.sensor = sensor || 'false'; | ||
@@ -191,0 +193,0 @@ |
{ | ||
"name": "googlemaps", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"main": "./lib/googlemaps", | ||
@@ -5,0 +5,0 @@ "description": "A simple way to query the Google Maps API from Node.js", |
22615
474