No commit activity in last 3 years
No release in over 3 years
Use this gem to access the Google Places Autocomplete API from your Ruby application
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 0
>= 0.14.0, ~> 0.14
 Project Readme

Google Places Autocomplete

Ruby wrapper for the Google Places Autocomplete API.

Installation

Inside your Gemfile:
gem 'google_places_autocomplete'

Get Google Places API credentials

Go here and activate it:
https://code.google.com/apis/console

Usage

Instantiate a client

>> client = GooglePlacesAutocomplete::Client.new(:api_key => 'your_api_key')

Example

>> autocomplete = client.autocomplete(:input => "Paris", :types => "geocode")
>> autocomplete.predictions.first.description
=> "Paris, France"

Contact me if you have any suggestions and feel free to fork it!