public function Geometry::dump in Geocoder 7.2
Same name in this branch
- 7.2 src/Geocoder/Dumper/Geometry.php \Geocoder\Dumper\Geometry::dump()
- 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\DumperCode
public function dump(Address $address) {
$dumper = new \Geocoder\Dumper\GeoJson();
return \geoPHP::load($dumper
->dump($address), 'geojson');
}