* @version 0.2 */ class Location { var $coord; var $html; /** * Location constructor initialized with all the coordinate data and html. * @param float $lat The latitude of the Location. * @param float $lng The longitude of the Location. * @param string $html The html for the location bubbles. */ function Location($lat, $lng, $html) { $this->coord = new Coord($lat, $lng); $this->html = $html; } /** * Gets the latitude of the Location. * @return float Latitude of the location. */ function getLat() { return $this->coord->getLat(); } /** * Gets the longitude of the Location. * @return float The longitude of the location. */ function getLng() { return $this->coord->getLng(); } /** * Gets the html associated with the location. * @return string The HTML for the locations bubble. */ function getHtml() { return $this->html; } } ?>