Skip to content

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

Notifications You must be signed in to change notification settings

mekan-allaberdi/places_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages