狠狠撸

狠狠撸Share a Scribd company logo
GPS
      GeoHash


      ke-tai.org
?
?
    ke-tai.org

?
Gps座標を短い文字列で扱えるGeo Hashが面白い
GeoHash


?

?   +141.22.35.364, +43.3.14.112
    ↓   ↓   ↓
    xpssbxt2gpf
GeoHash     (2)
?

?




    xpssbxt2 8         xpssbx 6
GeoHash   (3)
?




    xpst08
(1)
     ?


     ?
                    SQL like



lon > 141.22345 AND lon < 141.23124 AND lat > 43.41228AND lat < 143.42.097
                                 ↓   ↓   ↓
                       geohash LIKE ‘xpssbxt2%’
(2)
?
          URL
           foo.php?lon= 141.22345&lat= 43.41228&zoom=12
                               ↓ ↓ ↓
                       bar.php?gh=xpssbxt2



?    Perl, PHP, Ruby, Java, JavaScript



→          LOCAL riaf              PHP
    http://blog.riaf.jp/post/378886859/geohash-php
?             →
    1. base32
    2. 2      (5bit)
    3.       bit(      )          bit(       )
    4.


?                          URL

    http://d.hatena.ne.jp/yuroyoro/20100115/1263526125
GeoHash

 ?

 ?




          Web

More Related Content

Gps座標を短い文字列で扱えるGeo Hashが面白い

  • 1. GPS GeoHash ke-tai.org
  • 2. ? ? ke-tai.org ?
  • 4. GeoHash ? ? +141.22.35.364, +43.3.14.112 ↓ ↓ ↓ xpssbxt2gpf
  • 5. GeoHash (2) ? ? xpssbxt2 8 xpssbx 6
  • 6. GeoHash (3) ? xpst08
  • 7. (1) ? ? SQL like lon > 141.22345 AND lon < 141.23124 AND lat > 43.41228AND lat < 143.42.097 ↓ ↓ ↓ geohash LIKE ‘xpssbxt2%’
  • 8. (2) ? URL foo.php?lon= 141.22345&lat= 43.41228&zoom=12 ↓ ↓ ↓ bar.php?gh=xpssbxt2 ? Perl, PHP, Ruby, Java, JavaScript → LOCAL riaf PHP http://blog.riaf.jp/post/378886859/geohash-php
  • 9. ? → 1. base32 2. 2 (5bit) 3. bit( ) bit( ) 4. ? URL http://d.hatena.ne.jp/yuroyoro/20100115/1263526125
  • 10. GeoHash ? ? Web