Skip to content

Commit

Permalink
As per @mprins, defauling to point
Browse files Browse the repository at this point in the history
  • Loading branch information
phayes committed Aug 27, 2012
1 parent 08c2343 commit 7cf6a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/adapters/GeoHash.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class GeoHash extends GeoAdapter{
* @param string $hash a geohash
* @see GeoAdapter::read()
*/
public function read($hash, $as_point = FALSE) {
public function read($hash, $as_grid = FALSE) {
$ll = $this->decode($hash);
if ($as_point) {
if (!$as_grid) {
return new Point($ll['medlon'], $ll['medlat']);
}
else {
Expand Down

0 comments on commit 7cf6a75

Please sign in to comment.