UNPKG

smartystreets-javascript-sdk

Version:
2 lines (1 loc) 658 B
"use strict";var e,t;exports.__require=function(){return t?e:(t=1,e=class{constructor(e){if(this.distance=e.distance,this.address={},e.address&&(this.address.street=e.address.street,this.address.city=e.address.city,this.address.state_abbreviation=e.address.state_abbreviation,this.address.zipcode=e.address.zipcode,this.address.source=e.address.source),this.coordinate={},e.coordinate)if(this.coordinate.latitude=e.coordinate.latitude,this.coordinate.longitude=e.coordinate.longitude,this.coordinate.accuracy=e.coordinate.accuracy,1===e.coordinate.license)this.coordinate.license="SmartyStreets Proprietary";else this.coordinate.license="SmartyStreets"}})};