You are here

public function Geometry::dump in Geocoder 7.2

Same name in this branch
  1. 7.2 src/Geocoder/Dumper/Geometry.php \Geocoder\Dumper\Geometry::dump()
  2. 7.2 src/Plugin/Geocoder/Dumper/Geometry.php \Drupal\geocoder\Plugin\Geocoder\Dumper\Geometry::dump()

@inheritdoc

File

src/Geocoder/Dumper/Geometry.php, line 13

Class

Geometry
@author Pol Dellaiera <pol.dellaiera@gmail.com>

Namespace

Geocoder\Dumper

Code

public function dump(Address $address) {
  $dumper = new \Geocoder\Dumper\GeoJson();
  return \geoPHP::load($dumper
    ->dump($address), 'geojson');
}