GeoJson.php in Geocoder 7.2
Same filename and directory in other branches
The GeoJson plugin.
Namespace
Drupal\geocoder\Plugin\Geocoder\DumperFile
src/Plugin/Geocoder/Dumper/GeoJson.phpView source
<?php
/**
* @file
* The GeoJson plugin.
*/
namespace Drupal\geocoder\Plugin\Geocoder\Dumper;
use Drupal\geocoder\Plugin\Geocoder\Dumper;
use Drupal\geocoder\Plugin\Geocoder\DumperInterface;
use Geocoder\Model\Address;
/**
* Class GeoJson.
*
* @GeocoderPlugin(
* id = "geojson",
* name = "GeoJson",
* type = "Dumper"
* )
*/
class GeoJson extends Dumper implements DumperInterface {
/**
* @inheritdoc
*/
public function dump(Address $address) {
$handler = new \Geocoder\Dumper\GeoJson();
return $handler
->dump($address);
}
}