You are here

private property GeoHash::$neighbours in geoPHP 7

array of neighbouring hash character maps.

File

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

Class

GeoHash
PHP Geometry GeoHash encoder/decoder.

Code

private $neighbours = array(
  // north
  'top' => array(
    'even' => 'p0r21436x8zb9dcf5h7kjnmqesgutwvy',
    'odd' => 'bc01fg45238967deuvhjyznpkmstqrwx',
  ),
  // east
  'right' => array(
    'even' => 'bc01fg45238967deuvhjyznpkmstqrwx',
    'odd' => 'p0r21436x8zb9dcf5h7kjnmqesgutwvy',
  ),
  // west
  'left' => array(
    'even' => '238967debc01fg45kmstqrwxuvhjyznp',
    'odd' => '14365h7k9dcfesgujnmqp0r2twvyx8zb',
  ),
  // south
  'bottom' => array(
    'even' => '14365h7k9dcfesgujnmqp0r2twvyx8zb',
    'odd' => '238967debc01fg45kmstqrwxuvhjyznp',
  ),
);