

function LocationInfo (locInfo) {
	this.m_address   = locInfo.address;
	this.m_latitude  = locInfo.latitude;
	this.m_longitude = locInfo.longitude;
	this.m_note      = locInfo.note;
	this.m_title     = locInfo.title;
	this.m_url       = locInfo.url;
	this.m_urlTitle  = locInfo.urlTitle;
	this.m_latLngPoint = null;
}
	
LocationInfo.prototype.getAddress = function () {
	return this.m_address;
}
	
LocationInfo.prototype.getLatLng = function () {
	if (null != this.m_latLngPoint)	 {
		return this.m_latLngPoint;
	}
	if (undefined != this.m_latitude) {
		this.m_latLngPoint = new GLatLng (this.m_latitude, this.m_longitude);
		return this.m_latLngPoint;
	}
	return null;
}
	
LocationInfo.prototype.getLatitude = function () {
	return this.m_latitude;
}

LocationInfo.prototype.getLongitude = function () {
	return this.m_longitude;
}

LocationInfo.prototype.getNote = function () {
	return this.m_note;
}

LocationInfo.prototype.getTitle = function () {
	return this.m_title;
}

LocationInfo.prototype.getUrl = function () {
	return this.m_url;
}

LocationInfo.prototype.getUrlTitle = function () {
	return this.m_urlTitle;
}

LocationInfo.prototype.toString = function () {
	return "Location: "+ this.getAddress();
}
