You are here

Geohash.php in Geocoder 8.2

File

modules/geocoder_geofield/src/Plugin/Geocoder/Dumper/Geohash.php
View source
<?php

namespace Drupal\geocoder_geofield\Plugin\Geocoder\Dumper;

use Drupal\geocoder\DumperBase;
use Geocoder\Model\Address;

/**
 * Provides a geohash geocoder dumper plugin.
 *
 * @GeocoderDumper(
 *   id = "geohash",
 *   name = "Geohash",
 *   handler = "\Drupal\geocoder_geofield\Geocoder\Dumper\Geometry"
 * )
 */
class Geohash extends DumperBase {

  /**
   * {@inheritdoc}
   */
  public function dump(Address $address) {
    return parent::dump($address)
      ->out('geohash');
  }

}

Classes

Namesort descending Description
Geohash Provides a geohash geocoder dumper plugin.