main.js
function findStoresInZip(address, callback) {
  geo.geocode(address, function(err, georesult) {
    if (err) return callback(err);

    snapdb.findStoresInZip(georesult.zip5, function(err, stores) {
      if (err) return callback(err);
      georesult.stores = stores;
      return callback(null, georesult);
    });
  });
}
function findStoresInZip(address, callback) {
  geo.geocode(address, function(err, georesult) {
    if (err) return callback(err);

    snapdb.findStoresInZip(georesult.zip5, function(err, stores) {
      if (err) return callback(err);
      georesult.stores = stores;
      return callback(null, georesult);
    });
  });
}
function findStoresInZip ( address , callback ) { geo . geocode ( address , function ( err , georesult ) { if ( err ) return callback ( err ) ; snapdb . findStoresInZip ( georesult . zip5 , function ( err , stores ) { if ( err ) return callback ( err ) ; georesult . stores = stores ; return callback ( null , georesult ) ; } ) ; } ) ; }
Find stores within a zip code.
@param address a valid address, address fragment, or pair of coordinates
Find stores within a zip code .