タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

geohashとsnippetに関するsukka9のブックマーク (1)

  • Geohash関数 とりあえずPHP

    Geohashエンコード、デコード関数を書いてみた。 Geohash文字列を緯度と経度の区間に変換:geohash_decode_interval Geohash文字列を緯度と経度に変換:geohash_decode 緯度と経度をGeohash文字列に変換:geohash_encode Geohash文字列から、隣接する領域((2n+1)^2-1個)のGeohash文字列を返す:geohash_neighbour //integer to base32 function int_2_base32($v_in){ $v = (int)$v_in; if($v < 0 || $v > 31) return false; $base32 = '0123456789bcdefghjkmnpqrstuvwxyz'; $str = substr($base32, $v, 1); return $str

  • 1