This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This gist is turned into a gem: https://github.com/joost/google_places_api | |
require 'hashie' | |
require 'faraday' | |
require 'faraday_middleware' | |
# Created our own very simple Google Places API client since the google_places gem | |
# is returning incorrect results. | |
# Usage: | |
# client = GooglePlacesClient.new(key: API_KEY) | |
# response = client.get('textsearch', query: 'something') | |
# ref = response.body.results.first.reference |