Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darashi/iarea
A library for DoCoMo Open Iarea.
https://github.com/darashi/iarea
Last synced: 13 days ago
JSON representation
A library for DoCoMo Open Iarea.
- Host: GitHub
- URL: https://github.com/darashi/iarea
- Owner: darashi
- License: mit
- Created: 2010-04-25T16:21:57.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-02-24T01:23:24.000Z (almost 13 years ago)
- Last Synced: 2024-12-26T03:23:40.016Z (14 days ago)
- Language: Ruby
- Homepage:
- Size: 11.2 MB
- Stars: 16
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rdoc
- License: MIT-LICENSE
Awesome Lists containing this project
README
= Iarea
{}[http://travis-ci.org/darashi/iarea]
A library for DoCoMo Open Iarea.
= Installation
% gem install iarea
or add
gem 'iarea'
on your Gemfile.
= Example of use
require 'iarea'
area = Iarea::Area.find_by_lat_lng(43.0568397222222,141.3478975)
area.name # => "すすきの"
area.areacode # => "00208"
area.zone.name # => "北海道"
area.prefecture.name # => "北海道"
area.neighbors.map(&:name) #=> ["大通公園周辺", "大通東", "山鼻/藻岩周辺", "中島公園周辺"]= Resources
* {Documentation}[http://rdoc.info/github/darashi/iarea/master/frames]
= References
http://www.nttdocomo.co.jp/service/imode/make/content/iarea/domestic/index.html
db/iareadata contains the data extracted from http://www.nttdocomo.co.jp/binary/archive/service/imode/make/content/iarea/domestic/iareadata.lzh and http://www.nttdocomo.co.jp/service/imode/make/content/iarea/domestic/map/js/iarea_def.js.