Geohashing Chat by Proximity
, lat/long , . .
: GitHub Geo Chat

Geo Hashing
- / . / , . , Lat/Long.
function geohash( coord, resolution ) {
var rez = Math.pow( 10, resolution || 0 );
return Math.floor(coord * rez) / rez;
}

Geo ""
"Zoom", . Geofencing, , . , Geofencing PubNub. - /- Lat/Long (, X, Y). lat/long, , 1 . PubNub.
// Create Proximity Channel
channel = geohash( pos.latitude, 0 ) + '' + geohash( pos.longitude, 0 );
, . PubNub .
// Connect to Proximity Channel
pubnub.subscribe({
channel : channel,
message : receive,
connect : ready,
presence : presence
});

9
, , . "".
Geo Hashing PubNub
! PubNub. navigator.geolocation.getCurrentPosition(...) lat/long Chrome/firefox/ie/opera/mobile/safari.
PubNub Connected Car Solution Kit
