NodeJs module to serve JSON data from INEGI DENUE API, a 'KEY TOKEN' is required
npm install inegi-denue --save
var denue = require('inegi-denue')
var client = denue.createClient()
client.places(latitude, longitude, function (err, places) {
// Do something places
})
client.places(latitude, longitude, {close: 1500}, function (err, places) {
// Find all places around 1,500 meters
})
client.search('restaurantes', latitude, longitude, function (err, places) {
// Do something places
})
client.search('restaurantes', latitude, longitude, {close: 5000} function (err, places) {
// Search 'restaurantes' in a 5000 meters radio
})
'env INEGI_API_TOKEN="KEY_TOKEN" npm test'
'KEY_TOKEN' is exactly that String for test Only (using nock)
env INEGI_API_TOKEN="KEY_TOKEN" npm run coverage
env INEGI_API_TOKEN="'KEY_TOKEN'" node
'KEY_TOKEN' is a Required String
get it from: http://www.inegi.org.mx/desarrolladores/denue/apidenue.aspx