Foursquare.listVenues()

List Venues in an specific area

Usage

Hover over inputs/exits for more info.

var Foursquare = require('machinepack-foursquare');


// List Venues in an specific area

Foursquare.listVenues({

client_id: 'XYRA11GEUJ0GQSS4APL0VXCI1GZIHVRBQQIR0XB32GIEDUYT',

client_secret: 'H4JII1UI2AQK5VH4G1CASEN3XWFXM2KTY0OUWVKYZSZERR30',

near: 'Cambridge, MA',

query: 'Sushi',

limit: '5',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

client_id required

Your Foursquare app CLIENT_ID

'XYRA11GEUJ0GQSS4APL0VXCI1GZIHVRBQQIR0XB32GIEDUYT'
client_secret required

Your Foursquare app CLIENT_SECRET

'H4JII1UI2AQK5VH4G1CASEN3XWFXM2KTY0OUWVKYZSZERR30'
near required

The location you want to query

'Cambridge, MA'
query

A search term to be applied against venue names.

'Sushi'
limit

Limit venues results.

'5'

Exits

error

An unexpected error occurred.

success

OK.