// create Cloudant connection
var db = require('silverlining')(process.env.CLOUDANTURL + '/cities');
// get cities 'near' the ISS (sometimes there are none - there's a lot of empty out there)
var t = 5; // five degrees of tolerance
var cities = await db.query(
{
'latitude' : { '$gt': iss.latitude - t, '$lt' : iss.latitude + t },
'longitude' : { '$gt': iss.longitude - t, '$lt' : iss.longitude + t}
}
);