You are here

Geohash.php in Geocoder 8.3

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\Location;

/**
 * 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(Location $location) {
    return parent::dump($location)
      ->out('geohash');
  }

}

Classes

Namesort descending Description
Geohash Provides a geohash geocoder dumper plugin.