Giter Site home page Giter Site logo

findplace's Introduction

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

  • If anyone has comments or questions please let me know ([email protected] or [email protected]).

  • If you have updates or patches or want to contribute I would love to see what you have or want to add.

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it.

  • Send me a pull request. Bonus points for topic branches.

Contributers

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

Copyright © 2013 QBurst([email protected]). See LICENSE.txt for further details.

findplace's People

Contributors

anildias avatar

Watchers

Sooraj S avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.