Class: Geohash
- Inherits:
-
Object
- Object
- Geohash
- Defined in:
- lib/geohash.rb,
ext/geohash_wrapper/geohash_wrapper.c
Class Method Summary collapse
- .decode(hash) ⇒ Object
- .dimensions(precision) ⇒ Object
- .dimensions_for_precision ⇒ Object
- .encode ⇒ Object
- .neighbour ⇒ Object
- .neighbours ⇒ Object
- .wrap_decode ⇒ Object
Class Method Details
.decode(hash) ⇒ Object
5 6 7 |
# File 'lib/geohash.rb', line 5 def decode(hash) Geocoord.new(wrap_decode(hash)).freeze end |
.dimensions(precision) ⇒ Object
9 10 11 |
# File 'lib/geohash.rb', line 9 def dimensions(precision) Dimension.new(dimensions_for_precision(precision)).freeze end |
.dimensions_for_precision ⇒ Object
11 |
# File 'ext/geohash_wrapper/geohash_wrapper.c', line 11
VALUE wrap_geohash_dimensions_for_precision(VALUE self, VALUE precision);
|
.encode ⇒ Object
7 |
# File 'ext/geohash_wrapper/geohash_wrapper.c', line 7
VALUE wrap_geohash_encode(VALUE self, VALUE lat, VALUE lng, VALUE precision);
|
.neighbour ⇒ Object
10 |
# File 'ext/geohash_wrapper/geohash_wrapper.c', line 10
VALUE wrap_geohash_neighbour(VALUE self, VALUE hash, VALUE direction);
|
.neighbours ⇒ Object
9 |
# File 'ext/geohash_wrapper/geohash_wrapper.c', line 9
VALUE wrap_geohash_neighbours(VALUE self, VALUE hash);
|
.wrap_decode ⇒ Object
8 |
# File 'ext/geohash_wrapper/geohash_wrapper.c', line 8
VALUE wrap_geohash_decode(VALUE self, VALUE hash);
|