Giter Club home page Giter Club logo

yelp_vs_foursquare_api's Introduction

Miniproject 2 - Yelp vs Foursquare APIs Comparison

Project/Goals

This project aims to practice retrieving data from a variety formats of APIs and save it in the local SQLite database. I have retrieved data from Yelp and Foursquare APIs for city of Lakewood in Colorado (I will be moving soon!) and compare the results(restuarants, bars, parks, dog parks, animal hospital, supermarket, etc.) from those two APIs.

Process

  1. Getting relevant data using Postman (term: restaurant, park, pet store, etc.) and save them as json file.
  2. Open the file in python and print the information by using json_normalize funcion and select columns for comparison purpose (name, address, category, rate, number of reviews, etc.)
  3. Save it in SQL database
  4. Compare the two results from Foursquare and Yelp

Results

  1. Yelp gives better/more accurate category information. (i.e. Chick-fil-a(Chicken sandwich fast food restaurant): Ramen(Foursquare)/fast food(yelp))
  2. Yelp has a rating and number of reviews information, so it generally gives better information for a decision making.
  3. In Park information Foursquare listed more parks(5), but the addresses were not shown accurately (insufficient/wrong information).

Challenges

category has a nested dictionary under the set, so breaking up and pulling the first category (head category) from the dictionary and add it back to the dataframe was the most difficult part.

yelp_vs_foursquare_api's People

Contributors

irenethebest avatar

Watchers

 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.