Commit 2db7097b authored by Matthew Taylor's avatar Matthew Taylor Committed by GitHub

Merge pull request #839 from mewtaylor/hotfix/gh-828

[Develop] Fix GH-828: check street number range for address
parents ea91b3d8 ccfde96f
......@@ -3,16 +3,13 @@ var api = require('./api');
module.exports = function smartyStreetApi (params, callback) {
defaults(params, {
'auth-id': process.env.SMARTY_STREETS_API_KEY
'auth-id': process.env.SMARTY_STREETS_API_KEY,
'match': 'range'
});
api({
host: 'https://api.smartystreets.com',
uri: '/street-address',
headers: {
'X-Standardize-Only': true
},
params: params,
useXDR: false
params: params
}, function (err, body, res) {
if (err) return callback(err);
if (res.statusCode !== 200) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment