cdyne-address
module that allows you to communicate with the CDYNE PAV API from node.js
##Installation
This module is published in NPM
npm install cdyne-address --save
##Usage
var CdyneAddressAPI = require('cdyne-address');
var client = new CdyneAddressAPI('license_key');
##Methods
###verifyAddress
verifyAddress(primaryLine, secondaryLine, city, state, zip, options, callback)
client.verifyAddress('111 Grandby St', '', 'Norfolk', 'VA', '23510', {
ReturnGeoLocation: true
}, function(error, data) {
console.log(error, data);
});
Example Response (some fields omitted for brevity)
{
CityName: 'NORFOLK',
Country: 'USA',
County: 'NORFOLK CITY',
CountyNum: '710',
FinanceNumber: '516522',
GeoLocationInfo:
{ AreaCode: '757',
AvgLatitude: '36.846818',
AvgLongitude: '-76.292110',
FromLatitude: '36.846344',
FromLongitude: '-76.292363',
HasDaylightSavings: true,
TimeZone: 'EST',
ToLatitude: '36.847292',
ToLongitude: '-76.291857' },
IntelligentMailBarcodeKey: '+Md+yEHLZoK1AHH/kdcL0g==',
PrimaryDeliveryLine: '111 GRANBY ST',
ReturnCode: 100,
StateAbbreviation: 'VA',
StreetName: 'GRANBY',
Suffix: 'ST',
ZipCode: '23510-1603'
}