clintandrewhall/node-foursquare

getSuggestcompletion needs the argument near

beogip opened this issue · 1 comments

It's annoying that venues.getSuggestcompletion not allow the parameter near.
In the foursquare api is allowed

You can pass in near as a parameter property. Changing the function signature now to accept near as a passed in parameter (like the search function) would break backward compatibility.

The changes in pull request #26 will now allow you to pass in null lat/long values if you provide a near parameter property. The unit test for example passes it in like this:

Foursquare.Venues.getSuggestcompletion(null, null, 'Baking', { near: 'Chicago' }, accessToken, 
function (error, data) {
});