Skip to content

Commit

Permalink
Provide street2 field from business address
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Jul 22, 2013
1 parent c6c73ef commit ee69b40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/address.coffee
Expand Up @@ -13,7 +13,8 @@ module.exports =
dom = new DOMParser().parseFromString(body)
[address] = xpath.select('/feed/company-info/addresses/address[@type=\'business\']', dom)
street1 = xpath.select('street1/text()', address).toString()
street2 = xpath.select('street2/text()', address).toString()
city = xpath.select('city/text()', address).toString()
state = xpath.select('state/text()', address).toString()
zip = xpath.select('zip/text()', address).toString()
callback(null, {street1, city, state, zip})
callback(null, {street1, street2, city, state, zip})

0 comments on commit ee69b40

Please sign in to comment.