| @@ 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. |
|
| @@ 179-189 (lines=11) @@ | ||
| 176 | * Convert this grid reference into a latitude and longitude |
|
| 177 | * @return LatLng |
|
| 178 | */ |
|
| 179 | public function toLatLng() |
|
| 180 | { |
|
| 181 | $N = $this->y; |
|
| 182 | $E = $this->x; |
|
| 183 | $N0 = $this->getOriginNorthing(); |
|
| 184 | $E0 = $this->getOriginEasting(); |
|
| 185 | $phi0 = $this->getOriginLatitude(); |
|
| 186 | $lambda0 = $this->getOriginLongitude(); |
|
| 187 | ||
| 188 | return $this->convertToLatitudeLongitude($N, $E, $N0, $E0, $phi0, $lambda0); |
|
| 189 | } |
|
| 190 | ||
| 191 | /** |
|
| 192 | * String version of coordinate. |
|