https://github.com/danielpclark/strict_geocoder
Add scope methods for ensuring valid addresses are given
https://github.com/danielpclark/strict_geocoder
Last synced: about 2 months ago
JSON representation
Add scope methods for ensuring valid addresses are given
- Host: GitHub
- URL: https://github.com/danielpclark/strict_geocoder
- Owner: danielpclark
- License: mit
- Created: 2016-03-20T09:20:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-20T09:22:40.000Z (about 10 years ago)
- Last Synced: 2025-01-20T12:46:23.763Z (over 1 year ago)
- Language: Ruby
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# StrictGeocoder
This gem will be versioned by the current releases of geocoder. Any new methods
will be available on the repo's master branch before version release.
The point of strict methods is to raise an error rather than query the database
with null values. For example you may use the `:near!` scope from an API and inform
the client/user of an invalid address based on geo lookup failures.
**Implemented for ActiveRecord**
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'strict_geocoder'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install strict_geocoder
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).