medz/geohash

This package is abandoned and no longer maintained. No replacement package was suggested.

Longitude and Latitude Geo Hash Library.

Maintainers

Details

github.com/medz/geohash

Source

Issues

Installs: 3 208

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/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

Longitude and Latitude Geo Hash Library.

Install

composer require medz/geohash

Using

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();

LICENSE

MIT