Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

= Iarea

{Build Status}[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.