Skip to content
Ruby wrapper for the Google Places Autocomplete API
Ruby
Find file
Latest commit f31b994 Johnny Khai Nguyen update to version 0.0.3

README.md

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"

Copyright

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

Copyright (c) 2009 Johnny Khai Nguyen, released under the MIT license

Something went wrong with that request. Please try again.