Skip to content
/ geohash Public

Mirror of discontinued and removed geohash/geohash repo

License

Notifications You must be signed in to change notification settings

gsolak/geohash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geohash

Build Status

Simple php geohash class

Install

You may install Geohash with Composer (recommended) or manually.

require: {
    "geohash/geohash": "dev-master"
}

Usage

Encode a coordinates:

<?php
require "vendor/autoload.php";

use Geohash\Geohash;

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

Decode a geohash:

<?php
require "vendor/autoload.php";

use Geohash\Geohash;

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

About

Mirror of discontinued and removed geohash/geohash repo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages