geo3x3 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +12 -2
  2. data/lib/geo3x3/version.rb +1 -1
  3. metadata +1 -1
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Geo3x3
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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
 
@@ -1,3 +1,3 @@
1
1
  module Geo3x3
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo3x3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: