Giter Site home page Giter Site logo

mekan-allaberdi / places_api Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 8 KB

List places matching a location from multiple providers on the internet (e.g. Google Places, Yelp, and/or Foursquare).

Python 100.00%
python flask flaskrestful requests yelp-api foursquare-api googleplaces-api

places_api's Introduction

Places API

Description

List places matching a location from multiple providers on the internet (e.g. Google Places, Yelp, and/or Foursquare).

Project have three main modules:

  • Providers
    • Suuported providers for places search.
  • Resources
    • Resources for Rest-Api (Place Resource)
  • Util
    • Common infrastructure

I tried to make project extendable, so we can easily add new Place Search Providers without core changes. For providers we have Provider class which is parent class of all Place Search Providers. To run all providers , I get all subclasses of Provider class and run them, so only new Place Search Provider class with methods and attributes needed to add. As we are getting Api responses and parsing them, solution can be slower. To make it faster I used Threads. To demonstrate extensibility side of project by adding new Providers, without core changes.

Directory tree

└───places_api
    └───providers
    └───resources
    └───util
│   setup.py

Installation

Environment

  • Python 3.6

Virtual environment

$ cd code  # root directory
$ virtualenv -p python3 venv
$ source venv/bin/activate

Dependicies

$ python setup.py install

Running

$ python places_api/app.py 

or

$ main

Usage

places_api's People

Contributors

mekan-allaberdi avatar

Watchers

 avatar  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.