{"id":13700162,"url":"https://github.com/taogogo/geohash-php-extention","last_synced_at":"2025-05-04T18:34:29.855Z","repository":{"id":13185692,"uuid":"15869160","full_name":"taogogo/geohash-php-extention","owner":"taogogo","description":"A php extension for geohash conversion, it's writen in C Language, very fast to convert between geohash and coord.(一个转换经纬度和geohash的PHP扩展) - MIT License","archived":false,"fork":false,"pushed_at":"2022-03-10T02:12:55.000Z","size":8,"stargazers_count":80,"open_issues_count":2,"forks_count":28,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-11-13T06:33:09.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taogogo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-13T13:42:34.000Z","updated_at":"2024-09-10T07:40:31.000Z","dependencies_parsed_at":"2022-07-21T13:02:20.046Z","dependency_job_id":null,"html_url":"https://github.com/taogogo/geohash-php-extention","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taogogo%2Fgeohash-php-extention","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taogogo%2Fgeohash-php-extention/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taogogo%2Fgeohash-php-extention/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taogogo%2Fgeohash-php-extention/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taogogo","download_url":"https://codeload.github.com/taogogo/geohash-php-extention/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252383023,"owners_count":21739259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T20:00:49.196Z","updated_at":"2025-05-04T18:34:24.765Z","avatar_url":"https://github.com/taogogo.png","language":"C","funding_links":[],"categories":["地理"],"sub_categories":[],"readme":"geohash-php-extension\n=====\n## Introduce\n\ngeohash is a php extension,it can convert between “longitude and latitude” and \"geohash\".\n\ngeohash是一个用于转换经纬度和geohash的php扩展。\n\n相似的代码，使用扩展进行转换的速度比使用纯php代码快10倍以上。\n\n## Install:\n```shell\nphpize\n./configure \nmake\nmake install\necho \"extension=geohash.so\" \u003e\u003e /etc/php.ini\n\n```\n\n\n## Example:\n\nGeohash::decode(geohash string);\n\nGeohash::encode(latitude,longtitude);\n\nGeohash::encode(latitude,longtitude,precision=12);\n\n```php\n\u003c?php\nprint_r( Geohash::decode(\"wm3yr31d2524\") );\nprint_r( Geohash::encode(30.635780068114,104.03160111979,12) );\n?\u003e\n```\n## output:\n\n```php\nArray\n(\n    [latitude] =\u003e 30.635780068114\n    [longitude] =\u003e 104.03160111979\n)\n\nwm3yr31d2524\n\n```\n\n##contact\ne-mail: love(a)taogogo.info\n\n##docs\n\ngoogle专利： http://www.google.fr/patents/US20130097163\n\n维基百科： http://en.wikipedia.org/wiki/Geohash\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaogogo%2Fgeohash-php-extention","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaogogo%2Fgeohash-php-extention","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaogogo%2Fgeohash-php-extention/lists"}