League\Geotools\Geotools::geohash PHP Method

geohash() public method

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

Usage Example

コード例 #1
0
ファイル: Decode.php プロジェクト: vanslambrouckd/geotools
 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