/**
* BeNomad BeMap JavaScript API - GeocodingItem
*/
/**
* @classdesc
* Base class for geocoding items.
* @public
* @constructor
* @abstract
* @param {object} options see below the available values.
* @param {bemap.Coordinate} options.Coordinate
* @param {Array.<bemap.PostalAddress>} options.PostalAddress
* @param {Int} options.Angle
* @param {Int} options.SpeedLimit
* @param {Double} options.RelevanceScore
* @param {bemap.RoadFeature} options.RoadFeature
*/
bemap.GeocodingItem = function(options) {
var opts = options || {};
/**
* @type {bemap.Coordinate}
* @protected
*/
this.Coordinate = opts.Coordinate ? opts.Coordinate : null;
/**
* @type {Array.<bemap.PostalAddress>}
* @protected
*/
this.PostalAddress = opts.PostalAddress ? opts.PostalAddress : [];
/**
* @type {Int}
* @protected
*/
this.Angle = opts.Angle ? opts.Angle : 0;
/**
* @type {Int}
* @protected
*/
this.SpeedLimit = opts.SpeedLimit ? opts.SpeedLimit : 0;
/**
* @type {Double}
* @protected
*/
this.RelevanceScore = opts.RelevanceScore ? opts.RelevanceScore : 0;
/**
* @type {bemap.RoadFeature}
* @protected
*/
this.RoadFeature = opts.RoadFeature ? opts.RoadFeature : null;
};
/**
* Get the coordinates.
* @return {bemap.Coordinate} Coordinate
*/
bemap.GeocodingItem.prototype.getCoordinate = function() {
return this.Coordinate;
};
/**
* Get the postal address.
* @return {bemap.PostalAddress} PostalAddress
*/
bemap.GeocodingItem.prototype.getPostalAddress = function() {
return this.PostalAddress;
};
/**
* Get the angle.
* @return {Int} Angle
*/
bemap.GeocodingItem.prototype.getAngle = function() {
return this.Angle;
};
/**
* Get the speed limit.
* @return {Int} SpeedLimit
*/
bemap.GeocodingItem.prototype.getSpeedLimit = function() {
return this.SpeedLimit;
};
/**
* Get the relevance score.
* @return {Double} RelevanceSvore
*/
bemap.GeocodingItem.prototype.getRelevanceScore = function() {
return this.RelevanceScore;
};
/**
* Get the road informations
* @return {bemap.RoadFeature} RoadFeature
*/
bemap.GeocodingItem.prototype.getRoadFeature = function() {
return this.RoadFeature;
};