Code Monkey home page Code Monkey logo

places's Introduction

Places App

This is REST API providing information about locations (bars, restaurants) located within any radius around specified location. API is using Google Places API.

This is a Symfony project.

To setup project:

  1. Pull this repository
  2. Run composer update
  3. Answer questions regarding config/parameters.yml config file (you may use default values)
  4. Configure vhost (pointing /web directory)
  5. Configure url to your API in config/parameters.yml, param: api_gui[url]
  6. You may want to change default location and radius in config/parameters.yml file.

Please find API documentation under: {URL}/app_dev.php/api/doc It is autogenerated with NelmioApiDocBundle.

GUI is available under the following link: {URL}/app_dev.php/gui

In case of any problems, contact me at [email protected].

Attached please find some printscreens with API interface and example API response (folder: /docs)

Note: Google Places API returns up to 20 results. Next 20 + 20 results are available after few seconds (it was about 2-3 seconds when I tested it). I decided to make only one call and get just first 20 results. This solution may be improved in the future with:

  • tokens, exactly like it works in Google Places Api (response contains token to the next page with next 20 results). User should ask for first 20 results, then he may request next 20 results (using token from API response), and finally the last 20. Such response may be cached.

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.