Révision d0ee1e7f
Ajouté par Jocelyn Dealande il y a presque 10 ans
class/RefPoint.class.php | ||
---|---|---|
11 | 11 |
|
12 | 12 |
public function __construct($name, $values) { |
13 | 13 |
$this->name = $name; |
14 |
$this->lon = $values[0];
|
|
15 |
$this->lat = $values[1];
|
|
14 |
$this->lat = $values[0];
|
|
15 |
$this->lon = $values[1];
|
|
16 | 16 |
$this->ele = $values[2]; |
17 | 17 |
} |
18 | 18 |
|
... | ... | |
20 | 20 |
return $this->lat; |
21 | 21 |
} |
22 | 22 |
|
23 |
public function get_name() { |
|
24 |
return $this->name; |
|
25 |
} |
|
26 |
|
|
23 | 27 |
public function get_lon() { |
24 | 28 |
return $this->lon; |
25 | 29 |
} |
Formats disponibles : Unified diff
bugfixed inverted lon/lat parameters on RefPoint (+ added convenience ref_point->get_name())