/**
* BeNomad BeMap JavaScript API - PostalAddress
*/
/**
* @classdesc
* Base class for postal address.
* @public
* @constructor
* @abstract
* @param {object} options see below the available values.
* @param {String} options.countryCode
* @param {String} options.country
* @param {String} options.state
* @param {String} options.county
* @param {String} options.city
* @param {String} options.district
* @param {String} options.postalCode
* @param {String} options.roadNumber
* @param {String} options.street
* @param {String} options.streetNumber
*/
bemap.PostalAddress = function(options) {
var opts = options || {};
/**
* @type {String}
* @protected
*/
this.countryCode = opts.countryCode ? opts.countryCode : null;
/**
* @type {String}
* @protected
*/
this.country = opts.country ? opts.country : null;
/**
* @type {String}
* @protected
*/
this.state = opts.state ? opts.state : null;
/**
* @type {String}
* @protected
*/
this.county = opts.county ? opts.county : null;
/**
* @type {String}
* @protected
*/
this.city = opts.city ? opts.city : null;
/**
* @type {String}
* @protected
*/
this.district = opts.district ? opts.district : null;
/**
* @type {String}
* @protected
*/
this.postalCode = opts.postalCode ? opts.postalCode : null;
/**
* @type {String}
* @protected
*/
this.roadNumber = opts.roadNumber ? opts.roadNumber : null;
/**
* @type {String}
* @protected
*/
this.street = opts.street ? opts.street : null;
/**
* @type {String}
* @protected
*/
this.streetNumber = opts.streetNumber ? opts.streetNumber : null;
};
/**
* Get country code.
* @return {String} countryCode.
*/
bemap.PostalAddress.prototype.getCountryCode = function() {
return this.countryCode;
};
/**
* Get Country.
* @return {String} country.
*/
bemap.PostalAddress.prototype.getCountry = function() {
return this.country;
};
/**
* Get State.
* @return {String} state.
*/
bemap.PostalAddress.prototype.getState = function() {
return this.state;
};
/**
* Get county.
* @return {String} county.
*/
bemap.PostalAddress.prototype.getCounty = function() {
return this.county;
};
/**
* Get city.
* @return {String} city.
*/
bemap.PostalAddress.prototype.getCity = function() {
return this.city;
};
/**
* Get district.
* @return {String} district.
*/
bemap.PostalAddress.prototype.getDistrict = function() {
return this.district;
};
/**
* Get postal code.
* @return {String} postalCode.
*/
bemap.PostalAddress.prototype.getPostalCode = function() {
return this.postalCode;
};
/**
* Get road number
* @return {String} roadNumber
*/
bemap.PostalAddress.prototype.getRoadNumber = function() {
return this.roadNumber;
};
/**
* Get street.
* @return {String} street.
*/
bemap.PostalAddress.prototype.getStreet = function() {
return this.street;
};
/**
* Get street number
* @return {String} streetNumber
*/
bemap.PostalAddress.prototype.getStreetNumber = function() {
return this.streetNumber;
};