League\Geotools\Geotools::geohash PHP Méthode

geohash() public méthode

{@inheritDoc}
public geohash ( )
    public function geohash()
    {
        return new Geohash();
    }

Usage Example

Exemple #1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $geotools = new Geotools();
     $coordinate = $geotools->geohash()->decode($input->getArgument('geohash'))->getCoordinate();
     $output->writeln(sprintf('<value>%s, %s</value>', $coordinate->getLatitude(), $coordinate->getLongitude()));
 }
All Usage Examples Of League\Geotools\Geotools::geohash