medz/geohash

此包已被废弃,不再维护。没有建议的替代包。

经纬度地理哈希库。

1.0.1 2019-06-18 14:43 UTC

This package is auto-updated.

Last update: 2023-03-22 00:09:14 UTC


README

经纬度地理哈希库。

安装

composer require medz/geohash

使用

use Medz\GeoHash\GeoHash;

$geohash = GeoHash::encode([116.389550, 39.928167], 6 /* Min: 1, Max: 24 */); // wx4g0e
$coordinates = GeoHash::decode('wx4g0e'); // ->$longitude, -> $latitude, Or ->toArray();

许可证

MIT