{"id":18638471,"url":"https://github.com/takp/jp_station","last_synced_at":"2025-11-04T16:30:19.801Z","repository":{"id":56879277,"uuid":"50233063","full_name":"takp/jp_station","owner":"takp","description":"🚂  Ruby Gem. You can get the near station data from latitude and longitude.","archived":false,"fork":false,"pushed_at":"2016-01-30T08:01:21.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T09:27:53.496Z","etag":null,"topics":["gem","ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-23T10:00:14.000Z","updated_at":"2018-03-22T09:50:27.000Z","dependencies_parsed_at":"2022-08-20T11:40:45.347Z","dependency_job_id":null,"html_url":"https://github.com/takp/jp_station","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takp%2Fjp_station","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takp%2Fjp_station/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takp%2Fjp_station/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takp%2Fjp_station/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takp","download_url":"https://codeload.github.com/takp/jp_station/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239436026,"owners_count":19638247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gem","ruby","ruby-gem"],"created_at":"2024-11-07T05:41:52.057Z","updated_at":"2025-11-04T16:30:19.754Z","avatar_url":"https://github.com/takp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JpStation\n\nJpStation helps you to get the near station data from latitude and longitude using api. ( http://map.simpleapi.net/ ) \nThe response data is only in Japanese.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'jp_station'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install jp_station\n\n## Usage\n\nYou can get stations near the latitude and the longitude you set.\n\n```ruby\nlat, lng = [\"34.673150\", \"135.501005\"]\nresponse = JpStation::Simpleapi.stations(lat, lng)\n```\n\nThe response is Hash object.\n\n```ruby\nresponse[:count] # =\u003e 8\nresponse[:stations].length # =\u003e 8\nresponse[:stations].first[:name] # =\u003e \"心斎橋駅\"\n```\n\nThe response data is like this.\n\n```ruby\n{:count=\u003e8,\n :stations=\u003e\n  [{:name=\u003e\"心斎橋駅\",\n    :furigana=\u003e\"しんさいばしえき\",\n    :line=\u003e\"大阪市営御堂筋線ほか\",\n    :city=\u003e\"大阪市中央区\",\n    :prefecture=\u003e\"大阪府\",\n    :direction=\u003e\"北西\",\n    :directionReverse=\u003e\"南東\",\n    :distance=\u003e\"150\",\n    :distanceM=\u003e\"150m\",\n    :distanceKm=\u003e\"0.2km\",\n    :traveltime=\u003e\"徒歩2分以上\"},\n```\n\n## Station API Services\n\nThis gem use the api service.\n\nAbout api services (Japanese) : http://map.simpleapi.net/\n\n## Contributing\n\nBug 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.\n\n- Fork it\n- Create your feature branch (git checkout -b my-new-feature)\n- Commit your changes (git commit -am 'Add some feature')\n- Push to the branch (git push origin my-new-feature)\n- Create new Pull Request\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakp%2Fjp_station","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakp%2Fjp_station","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakp%2Fjp_station/lists"}