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 +4 -4
- data/README.md +28 -9
- data/lib/jp_station/version.rb +1 -1
- data/lib/jp_station.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3855f33ac25ecd9e834840d509b2b59392d74670
|
4
|
+
data.tar.gz: 9319595c9f1b72753ea367bf5b2517d0a7682ad4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/ )
|
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
|
-
|
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/
|
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
|
|
data/lib/jp_station/version.rb
CHANGED
data/lib/jp_station.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|