rorrego / chilean_cities

A flat table of the chilean cities as described by the Chilean Subsecretaría de Desarrollo Regional y Administrativo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comunas de Chile

Build Status Code Climate

A flat table of the Chilean comunas as described by the SUBDERE.

Disclaimer

This library is not developed, supported nor endorsed in any way by the Chilean Subsecretaría de Desarrollo Regional y Administrativo (SUBDERE), nor any related institution.

Data Sources

This library is based on the publicly available information from the SUBDERE related to the Codificación Única Territorial. The sources quoted by the document on which this library is based are:

  • Decreto Supremo No 1439, del Ministerio del Interior, publicado en el Diario Oficial del 8 de Mayo de 2000
  • Decreto Supremo No 1352, del Ministerio del Interior, publicado en el Diario Oficial del 23 de Agosto de 2008
  • Decreto Exento No 910, del Ministerio del Interior, publicado en el Diario Oficial del 14 de Junio de 2007
  • Decreto Exento No 817, del Ministerio del Interior, publicado en el Diario Oficial del 26 de Marzo de 2010

Usage

Add the gem to your Gemfile:

gem 'chilean_cities', git: 'git@github.com:gonzalo-bulnes/chilean_cities.git'

Then copy the migrations to your application and apply them:

rake chilean_cities:install:migrations
rake db:migrate

Add the line # Load the chilean cities here please in db/seeds.rb if your application has one. (If it doesn't, the generator will create one.) Finally, generate the seed and run it:

rails generate chilean_cities:seeds
bundle exec rake db:seed

Credits

Part of this gem was crafted during my 10% free focus work time at Acid Labs. Thanks for that!

License

ChileanCities provides a Ruby implementation of the Chilean _comunas_.
Copyright (C) 2013  Gonzalo Bulnes Guilpain

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

About

A flat table of the chilean cities as described by the Chilean Subsecretaría de Desarrollo Regional y Administrativo.

License:GNU General Public License v3.0


Languages

Language:Ruby 99.1%Language:JavaScript 0.5%Language:CSS 0.4%