Add error checking for Mapquest lookup (tests included) #528

Merged
merged 1 commit into from Oct 1, 2013

2 participants

@phallstrom

Mapquest returns some status information that we can examine to see if the request was successful. It's the same status for both the licensed and open apis.

http://www.mapquestapi.com/geocoding/status_codes.html
http://open.mapquestapi.com/geocoding/status_codes.html

Patch adds checks for the status and raises (or warns) with the relevant error (modeled after the Google lookup).

@alexreisner alexreisner merged commit 2c9ef68 into alexreisner:master Oct 1, 2013

1 check passed

Details default The Travis CI build passed
@alexreisner
Owner

Awesome, thanks!

@phallstrom

Thanks for the quick response! Any idea when you'll push this out onto ruby gems? Or should I grab it direct from github?

@alexreisner
Owner

Hoping to do a release in October but no promises!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment