More Related Content
More from Kentaro Matsui (14)
Gps座標を短い文字列で扱えるGeo Hashが面白い
- 1. GPS
GeoHash
ke-tai.org
- 4. GeoHash
•
• +141.22.35.364, +43.3.14.112
↓ ↓ ↓
xpssbxt2gpf
- 5. GeoHash (2)
•
•
xpssbxt2 8 xpssbx 6
- 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