jp_station 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26533a334588c688dcffacaf0344737354acb053
4
- data.tar.gz: d6b65da96ab1c1e5d9fe3df65cd8ed9ff3e94ac2
3
+ metadata.gz: 3855f33ac25ecd9e834840d509b2b59392d74670
4
+ data.tar.gz: 9319595c9f1b72753ea367bf5b2517d0a7682ad4
5
5
  SHA512:
6
- metadata.gz: 8e29d07bc1a5a3c8edebc68c18600d47dc953a4e3c153c24000fd428d1bd79b56041c80465eeec08059c980c2b718a47296e20ff163cee1de4bf768571d9207d
7
- data.tar.gz: 0fd788ebdf8f23dab26df0fdee70066b2601dc787124402f95c894b956e148196b1f22b422e3a1a92e929023d7056f513e536f04cb25d948d820b493a602413e
6
+ metadata.gz: cfe025d296ef90041cb8876b1c875fbb5f7339a8581224a58c58fcd2b8e863fac43b0c808dbd486d39c7983afa2713b3ab01cfaa6e2d98cd5514e89dc2f1de0e
7
+ data.tar.gz: 5295336584052d1b482bb8a89d7a2651f1a0795eac068acf06cab0d041c1971da34caf4d372d9e886e48c77f3f1d16955a1e6e10e0436a75f14987c7a859b412
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # JpStation
2
2
 
3
- JpStation helps you to get the near station data from latitude and longitude using api. ( http://map.simpleapi.net/ ) Now the response data is only in Japanese.
3
+ JpStation helps you to get the near station data from latitude and longitude using api. ( http://map.simpleapi.net/ )
4
+ The response data is only in Japanese.
4
5
 
5
6
  ## Installation
6
7
 
@@ -27,7 +28,7 @@ lat, lng = ["34.673150", "135.501005"]
27
28
  response = JpStation::Simpleapi.stations(lat, lng)
28
29
  ```
29
30
 
30
- the response is Hash object.
31
+ The response is Hash object.
31
32
 
32
33
  ```ruby
33
34
  response[:count] # => 8
@@ -35,21 +36,39 @@ response[:stations].length # => 8
35
36
  response[:stations].first[:name] # => "心斎橋駅"
36
37
  ```
37
38
 
39
+ The response data is like this.
40
+
41
+ ```ruby
42
+ {:count=>8,
43
+ :stations=>
44
+ [{:name=>"心斎橋駅",
45
+ :furigana=>"しんさいばしえき",
46
+ :line=>"大阪市営御堂筋線ほか",
47
+ :city=>"大阪市中央区",
48
+ :prefecture=>"大阪府",
49
+ :direction=>"北西",
50
+ :directionReverse=>"南東",
51
+ :distance=>"150",
52
+ :distanceM=>"150m",
53
+ :distanceKm=>"0.2km",
54
+ :traveltime=>"徒歩2分以上"},
55
+ ```
56
+
38
57
  ## Station API Services
39
58
 
40
59
  This gem use the api service.
41
60
 
42
61
  About api services (Japanese) : http://map.simpleapi.net/
43
62
 
44
- ## Development
45
-
46
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
47
-
48
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
49
-
50
63
  ## Contributing
51
64
 
52
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jp_station. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
65
+ Bug reports and pull requests are welcome on GitHub at https://github.com/takp/jp_station. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
66
+
67
+ - Fork it
68
+ - Create your feature branch (git checkout -b my-new-feature)
69
+ - Commit your changes (git commit -am 'Add some feature')
70
+ - Push to the branch (git push origin my-new-feature)
71
+ - Create new Pull Request
53
72
 
54
73
  ## License
55
74
 
@@ -1,3 +1,3 @@
1
1
  module JpStation
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/jp_station.rb CHANGED
@@ -2,5 +2,4 @@ require "jp_station/version"
2
2
  require "jp_station/simpleapi"
3
3
 
4
4
  module JpStation
5
- # Your code goes here...
6
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jp_station
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takayoshi Nishida
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-23 00:00:00.000000000 Z
11
+ date: 2016-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler