Geohash.php in Geocoder 8.3
Same filename in this branch
Same filename and directory in other branches
File
modules/geocoder_geofield/src/Plugin/Geocoder/Dumper/Geohash.phpView 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');
}
}