| @@ 102-112 (lines=11) @@ | ||
| 99 | * Convert this grid reference into a latitude and longitude |
|
| 100 | * @return LatLng |
|
| 101 | */ |
|
| 102 | public function toLatLng() |
|
| 103 | { |
|
| 104 | $N = $this->y; |
|
| 105 | $E = $this->x; |
|
| 106 | $N0 = $this->getOriginNorthing(); |
|
| 107 | $E0 = $this->getOriginEasting(); |
|
| 108 | $phi0 = $this->getOriginLatitude(); |
|
| 109 | $lambda0 = $this->getOriginLongitude(); |
|
| 110 | ||
| 111 | return $this->convertToLatitudeLongitude($N, $E, $N0, $E0, $phi0, $lambda0); |
|
| 112 | } |
|
| 113 | ||
| 114 | /** |
|
| 115 | * String version of coordinate. |
|
| @@ 196-206 (lines=11) @@ | ||
| 193 | * Convert this grid reference into a latitude and longitude |
|
| 194 | * @return LatLng |
|
| 195 | */ |
|
| 196 | public function toLatLng() |
|
| 197 | { |
|
| 198 | $N = $this->y; |
|
| 199 | $E = $this->x; |
|
| 200 | $N0 = $this->getOriginNorthing(); |
|
| 201 | $E0 = $this->getOriginEasting(); |
|
| 202 | $phi0 = $this->getOriginLatitude(); |
|
| 203 | $lambda0 = $this->getOriginLongitude(); |
|
| 204 | ||
| 205 | return $this->convertToLatitudeLongitude($N, $E, $N0, $E0, $phi0, $lambda0); |
|
| 206 | } |
|
| 207 | ||
| 208 | /** |
|
| 209 | * String version of coordinate. |
|