medz / geohash
Longitude and Latitude Geo Hash Library.
Installs: 2 727
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
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