findplace

* findplace is a gem that allows to search for locations nearby.For eg: User can search for 'Hotels' nearby by passing the request as "hotel".
* The gem will access the user-ip to find the location of the IP and then return all locations matching the request.

Installation

The master branch supports versions >= Rails 3

Add the gem to the gemfile:

gem "findplace"

Usage

To find a location near you:

* FindPlace.search_nearby(google_places_api_key,client_ip,type)

        eg: FindPlace.search_nearby("goole_api_key",10.10.10.10,"school")
                returns the array of locations of all the schools within 5000 meters of the location of the IP 10.10.10.10

* If the google_api_key is invalid,result would be "Invalid API key"
* If the Geocoder doesnot respond before time out,response would be "No Results,Request Time Out"
* If the request doesnot produce any results,response would be "Sorryyy...No results for your request"

Comments/Requests

Note on Patches/Pull Requests

Contributers

This list is open to all. You are all welcome :).

Copyright © 2013 QBurst(qbruby@qburst.com). See LICENSE.txt for further details.