Kladr for Rails
Kladr API is free service for retrieving address details (cities, streets and etc) for Russian regions
See the Kladr home page for more information and examples.
Installation
Add this line to your application's Gemfile:
gem 'kladr-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install kladr-rails
Using the javascripts
Require kladr
in your app/assets/javascripts/application.js
file:
//= require kladr
Using the default styles
Add the following to your app/assets/stylesheets/application.css file:
*= require kladr
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request