2017 © Pedro Peláez
 

library geohash

This package geohash for Laravel 5 support.

image

latrell/geohash

This package geohash for Laravel 5 support.

  • Friday, March 27, 2015
  • by Latrell
  • Repository
  • 1 Watchers
  • 6 Stars
  • 8,362 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

Geohash

This package geohash for Laravel 5 support., (*1)

Installation

composer require latrell/geohash dev-master

Update your packages with composer update or install with composer install., (*2)

Find the providers key in config/app.php and register the Geohash Service Provider., (*3)

    'providers' => [
        // ...
        'Latrell\Geohash\GeohashServiceProvider',
    ]

Find the aliases key in config/app.php., (*4)

    'aliases' => [
        // ...
        'Geohash' => 'Latrell\Geohash\Facades\Geohash',
    ]

Usage

Encode a coordinate:, (*5)

echo Geohash::encode(31.283131, 121.500831); // wtw3uyfjqw61

Decode a Geohash:, (*6)

list($lat, $lng) = Geohash::decode('wtw3uyfjqw61');
echo $lat, ', ', $lng; // 31.283131, 121.500831

The Versions

27/03 2015

dev-master

9999999-dev

This package geohash for Laravel 5 support.

  Sources   Download

MIT

The Requires

 

by Latrell Chan

laravel laravel 5 l5 geohash

10/03 2015

1.0.0

1.0.0.0

This package geohash for Laravel4 support.

  Sources   Download

MIT

The Requires

 

by Latrell Chan

laravel laravel 5 l5 geohash