Copied!

Geohash class

CloneableInstantiable
Constants
public League\Geotools\Geohash\Geohash::MAX_LENGTH = 12
 

The maximum length of the geo hash.

public League\Geotools\Geohash\Geohash::MIN_LENGTH = 1
 

The minimum length of the geo hash.

Methods
public decode( $geohash) : League\Geotools\Geohash\GeohashInterface
 
    public encode(League\Geotools\Coordinate\CoordinateInterface $coordinate, $length = 12self::MAX_LENGTH) : League\Geotools\Geohash\GeohashInterface
     
    • see http://en.wikipedia.org/wiki/Geohash
    • see http://geohash.org/
    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
    protected $latitudeInterval
     

    The interval of latitudes in degrees.

    protected $longitudeInterval
     

    The interval of longitudes in degrees.

    © 2023 Bruce Wells
    Search Namespaces \ Classes
    Configuration