index.js
function getAddressDetails(body, callback) {
	var addresses = JSON.parse(body).addresses
	if(addresses.length == 0) {
		callback(new Error('No property information for that address'), null);
	}
	else {
		var url = property_url + encodeURIComponent(addresses[0].standardizedAddress);
		request(url, function(err, resp, body) {
			callback(err, body);
		});
	}
}
function getAddressDetails(body, callback) {
	var addresses = JSON.parse(body).addresses
	if(addresses.length == 0) {
		callback(new Error('No property information for that address'), null);
	}
	else {
		var url = property_url + encodeURIComponent(addresses[0].standardizedAddress);
		request(url, function(err, resp, body) {
			callback(err, body);
		});
	}
}
function getAddressDetails ( body , callback ) { var addresses = JSON . parse ( body ) . addresses if ( addresses . length == 0 ) { callback ( new Error ( 'No property information for that address' ) , null ) ; } else { var url = property_url + encodeURIComponent ( addresses [ 0 ] . standardizedAddress ) ; request ( url , function ( err , resp , body ) { callback ( err , body ) ; } ) ; } }
Get property details for an address.
Get property details for an address .