Source: bemap-model/bemap-geocodingResponse.js

/**
 * BeNomad BeMap JavaScript API - GeocodingResponse
 */

/**
 * @classdesc
 * Base class for reverse geocoding search information.
 * @public
 * @constructor
 * @abstract
 * @param {object} options see below the available values.
 * @param {bemap.BoundingBox} options.extent
 * @param {bemap.PostalAddress} options.postalAddress
 */
bemap.GeocodingResponse = function(options) {
    var opts = options || {};

    /**
     * @type {String}
     * @protected
     */
    this.action = opts.action ? opts.action : null;

    /**
     * @type {Array.<bemap.GeocodingItem>}
     * @protected
     */
    this.geocodingItems = opts.geocodingItems ? opts.geocodingItems : [];

    /**
     * @type {bemap.BoundingBox}
     * @protected
     */
    this.extent = opts.extent ? opts.extent : new bemap.BoundingBox();
};

bemap.GeocodingResponse.prototype.getAction = function() {
    return this.action;
};

/**
 * Get the geocoding items.
 * @return {Array.<bemap.GeocodingItem>} geocodingItems.
 */
bemap.GeocodingResponse.prototype.getGeocodingItems = function() {
    return this.geocodingItems;
};

/**
 * Get extent.
 * @return {bemap.BoundingBox} extent.
 */
bemap.GeocodingResponse.prototype.getExtent = function() {
    return this.extent;
};