定制 latrell/geohash 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

latrell/geohash

最新稳定版本:1.0.0

Composer 安装命令:

composer require latrell/geohash

包简介

This package geohash for Laravel 5 support.

README 文档

README

This package geohash for Laravel 5 support.

Installation

composer require latrell/geohash dev-master

Update your packages with composer update or install with composer install.

Find the providers key in config/app.php and register the Geohash Service Provider.

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

Find the aliases key in config/app.php.

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

Usage

Encode a coordinate:

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

Decode a Geohash:

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

统计信息

  • 总下载量: 28.12k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-06