Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
/ geohash Public archive

Longitude and Latitude Geo Hash Library.

License

Notifications You must be signed in to change notification settings

medz/geohash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geo Hash for PHP

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

About

Longitude and Latitude Geo Hash Library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages