- 版本要求 PHP > 5.6
##Table of contents
Description: 使用GeoHash编码坐标
latitude longitude
String 成功返回Hash串, 失败返回NULL
$hash = geohash(39.962386,116.368561);
$hash = geohash(39.962386,116.368561, 8);
Description: 计算2个坐标的球面距离.
latitude1 longitude1 latitude2 longitude2
Double 成功返回两个坐标之间的距离, 单位M, 失败返回NULL
$d = wgs_distance(39.992904,116.293030, 39.992904,116.398030);