Geohash class
- author Antoine Corcy
CloneableInstantiable
Constants |
public League The maximum length of the geo hash. |
public League The minimum length of the geo hash. |
Methods |
public decode( $geohash) : League |
public encode(League
|
public getBoundingBox() : array Returns the bounding box which is an array of coordinates (SouthWest & NorthEast). |
public getCoordinate() Returns the decoded coordinate (The center of the bounding box). |
public getGeohash() : string Returns the geo hash. |
Properties |
protected $base32Chars The array of chars in base 32. |
protected $bits The interval of bits. |
protected $geohash The geo hash. |
protected $latitudeInterval The interval of latitudes in degrees. |
protected $longitudeInterval The interval of longitudes in degrees. |