You are here

private property GeoHash::$borders in geoPHP 7

array of bordering hash character maps.

File

geoPHP/lib/adapters/GeoHash.class.php, line 45

Class

GeoHash
PHP Geometry GeoHash encoder/decoder.

Code

private $borders = array(
  // north
  'top' => array(
    'even' => 'prxz',
    'odd' => 'bcfguvyz',
  ),
  // east
  'right' => array(
    'even' => 'bcfguvyz',
    'odd' => 'prxz',
  ),
  // west
  'left' => array(
    'even' => '0145hjnp',
    'odd' => '028b',
  ),
  // south
  'bottom' => array(
    'even' => '028b',
    'odd' => '0145hjnp',
  ),
);