0.0
No commit activity in last 3 years
No release in over 3 years
Add strict scopes for ActiveRecord to Geocoder
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 3.2.22.2
>= 1.3.1, ~> 1.3
 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:

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.