alexreisner/geocoder — pull request #327 by zpasal (2012-11-08 16:33:09+00:00)
Title: Adding support for Google Places API

Hi

I add support for Google Places API (https://developers.google.com/places/documentation/search) and it fits very well in geocoder project.

At first, Google Places API is not geocoding at all, but it searches for places. It will return multiple places with some data (note that place does not have full set of data as in geocoder (it has full_address, but not parsed). To obtain parsed values second call to 'details' api must be made.

I added lazy call for details (only if you access fields like: city, country, ..). Lat,lng and full_address are present without second call.

Hope that you will include this patch. Im currently working on Google Places 'nearby' search and also started implementing NOKIA, FourSquare and Bing lookups.

Any comments to improve code?

Tx for great gem.