Skip to content

Commit

Permalink
assume false on places 'sensor'
Browse files Browse the repository at this point in the history
  • Loading branch information
moshen committed May 11, 2011
1 parent d84efdf commit 79ca706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/googlemaps.js
@@ -1,16 +1,16 @@
var qs = require('querystring');

// http://code.google.com/apis/maps/documentation/places/
exports.places = function(latlng, radius, sensor, key, callback, types, lang, name) {
exports.places = function(latlng, radius, key, callback, sensor, types, lang, name) {
var args = {
location: latlng,
radius: radius,
sensor: sensor,
key: key
}
if (types) args.types = types;
if (lang) args.lang = lang;
if (name) args.name = name;
args.sensor = sensor || 'false';

var path = '/maps/api/place/search/json?' + qs.stringify(args);
makeRequest(path, true, returnObjectFromJSON(callback));
Expand Down

0 comments on commit 79ca706

Please sign in to comment.