Skip to content

Commit

Permalink
Do not set default value for radius, when specified - it affects near…
Browse files Browse the repository at this point in the history
…bysearch ranking
  • Loading branch information
lostintime committed Sep 16, 2016
1 parent a06dc34 commit 9f3b597
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/placeSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ module.exports = function(params, callback) {
return callback(new Error('If rankby=distance is specified, then one or more of keyword, name, or types is required.'));
}
delete args.radius;
} else if (args.rankby === PLACES_RANKBY_DEFAULT) {
if (args.radius == null) {
args.radius = MAX_RADIUS;
}
}

if (args.radius != null) {
Expand Down

0 comments on commit 9f3b597

Please sign in to comment.