alexreisner/geocoder — Issue #198: Raise exceptions (rather than warn) for all API error conditions
Author: jeffomatic
Created: 2012-03-09 17:07:56+00:00
State: open

Geocoder::Lookup::Google raises an exception when the query limit is hit, but in a variety of other failure cases, it merely warns and returns a blank value. But it's helpful to be able to distinguish between various failure cases. For example, if I wanted to cache the Geocoded response, I would want to cache a blank result if the request was invalid (i.e. the query was not formatted correctly), but I would not want to cache if the request were simply denied.