Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getAddressRow() {
var street = '',
address = new PostalAddress.default();
if (tags['addr:housenumber']) {
street += tags['addr:housenumber'] + ' ';
}
if (tags['addr:street']) {
street += tags['addr:street'];
}
address.setAddress1(street);
address.setCity(tags['addr:city']);
address.setPostalCode(tags['addr:postcode']);
address.setFormat({
country: tags['addr:country'],
type: 'business'
});