GPS
      GeoHash


      ke-tai.org
•
•
    ke-tai.org

•
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...
(2)
•
          URL
           foo.php?lon= 141.22345&lat= 43.41228&zoom=12
                               ↓ ↓ ↓
         ...
•             →
    1. base32
    2. 2      (5bit)
    3.       bit(      )          bit(       )
    4.


•              ...
GeoHash

 •

 •




          Web
Gps座標を短い文字列で扱えるGeo Hashが面白い
Upcoming SlideShare
Loading in …5
×

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

4,235 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,235
On SlideShare
0
From Embeds
0
Number of Embeds
181
Actions
Shares
0
Downloads
9
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

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

  1. 1. GPS GeoHash ke-tai.org
  2. 2. • • ke-tai.org •
  3. 3. GeoHash • • +141.22.35.364, +43.3.14.112 ↓ ↓ ↓ xpssbxt2gpf
  4. 4. GeoHash (2) • • xpssbxt2 8 xpssbx 6
  5. 5. GeoHash (3) • xpst08
  6. 6. (1) • • SQL like lon > 141.22345 AND lon < 141.23124 AND lat > 43.41228AND lat < 143.42.097 ↓ ↓ ↓ geohash LIKE ‘xpssbxt2%’
  7. 7. (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
  8. 8. • → 1. base32 2. 2 (5bit) 3. bit( ) bit( ) 4. • URL http://d.hatena.ne.jp/yuroyoro/20100115/1263526125
  9. 9. GeoHash • • Web

×