Révision ffebe856
Ajouté par Jocelyn Dealande il y a environ 10 ans
class/RefPoint.class.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
require_once(dirname(__FILE__).'/../constants.inc.php'); |
3 |
|
|
3 |
require_once(dirname(__FILE__).'/GeoPoint.class.php'); |
|
4 | 4 |
// |
5 |
class RefPoint { |
|
5 |
class RefPoint extends GeoPoint {
|
|
6 | 6 |
static $all_ref_points_cache; |
7 | 7 |
public $name; |
8 | 8 |
public $lon; |
... | ... | |
16 | 16 |
$this->ele = $values[2]; |
17 | 17 |
} |
18 | 18 |
|
19 |
public function get_lat() { |
|
20 |
return $this->lat; |
|
21 |
} |
|
22 |
|
|
23 |
public function get_lon() { |
|
24 |
return $this->lon; |
|
25 |
} |
|
26 |
|
|
19 | 27 |
public static function load_if_needed() { |
20 | 28 |
if (!isset(self::$all_ref_points_cache)) { |
21 | 29 |
if (file_exists(REF_POINTS_PATH)) { |
Formats disponibles : Unified diff
do not display ref_points and panorama further than 25km from the current one (tunable in constant)