gogo_maps 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -17
- data/lib/gogo_maps/version.rb +1 -1
- data/lib/gogo_maps.rb +0 -1
- data/spec/gogo_maps_spec.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77e5eba4e7e66a37b5ff65fc956c806e90c093bc
|
4
|
+
data.tar.gz: bf25955da9d889e04161fd0f952e4bf51c26a244
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6392d9778628fd901ac67ad600affe5b4ff6f48b28de84a4897a744c58fb490efb9602e1f8a70d45be214d8f5f43be17d253f92e30b8d9e04c42808d751be5d4
|
7
|
+
data.tar.gz: d0e87ba852cca5c5cceae219b0c842410059dd3c50e10373caaf871dc000aced3ab679810a3399599e3ec3e77e431043a666272adcd4730cf7eb417313dce015
|
data/README.md
CHANGED
@@ -1,31 +1,36 @@
|
|
1
1
|
# GogoMaps
|
2
2
|
|
3
|
-
|
3
|
+
Super simple geocode interface for Ruby.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
7
|
+
Install gem as you like.
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
$ gem install gogo_maps
|
10
|
+
|
11
|
+
or
|
12
12
|
|
13
|
-
|
13
|
+
$ echo "gem 'gogo_maps'" >> Gemfile
|
14
14
|
|
15
|
-
|
15
|
+
## Demo
|
16
|
+
```ruby
|
17
|
+
require 'gogo_maps'
|
16
18
|
|
17
|
-
|
19
|
+
# Address to lat and lng.
|
20
|
+
GogoMaps.get(address: '長野県上高井郡高山村')
|
21
|
+
# => {"lat"=>36.6797676, "lng"=>138.3632554}
|
18
22
|
|
19
|
-
|
23
|
+
GogoMaps.get(address: '神奈川県横浜市港北区日吉')
|
24
|
+
# => {"lat"=>35.5565107, "lng"=>139.6460026}
|
20
25
|
|
21
|
-
|
26
|
+
# Lat and lng to Address.
|
27
|
+
GogoMaps.get(latlng: '35.6506135,139.7539103')
|
28
|
+
# => '日本, 東京都港区芝1丁目11−14'
|
22
29
|
|
23
|
-
|
30
|
+
GogoMaps.get(latlng: '37.358126,-122.050636', language: :en)
|
31
|
+
# => '902 Rockefeller Drive, Sunnyvale, CA 94087, USA'
|
32
|
+
```
|
24
33
|
|
25
34
|
## Contributing
|
26
|
-
|
27
|
-
|
28
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
-
5. Create a new Pull Request
|
35
|
+
Please feel free to.
|
36
|
+
Make you commiter if you wanna be.
|
data/lib/gogo_maps/version.rb
CHANGED
data/lib/gogo_maps.rb
CHANGED
data/spec/gogo_maps_spec.rb
CHANGED