geo3x3 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +12 -2
- data/lib/geo3x3/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Geo3x3
|
2
2
|
|
3
|
-
|
3
|
+
geo zone encoding
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,17 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
```ruby
|
22
|
+
require 'geo3x3'
|
23
|
+
|
24
|
+
code = Geo3x3.encode({
|
25
|
+
lat: 36.208823,
|
26
|
+
lng: 138.251953,
|
27
|
+
level: 5
|
28
|
+
}) # => "E3793"
|
29
|
+
|
30
|
+
Geo3x3.decode(code)
|
31
|
+
```
|
22
32
|
|
23
33
|
## Contributing
|
24
34
|
|
data/lib/geo3x3/version.rb
CHANGED