Code Monkey home page Code Monkey logo

ruta-foodie's Introduction

Food Route

Overview

Created with foodies in mind, this tool provides comparison between all the top rated restaurants in the user's search parameters. Users are presented with 3 different search parameters: city, cuisine and distance. Users fill in all the parameters and the tool generates a map with markers containing the top 5 restaurants based on cuisine. Increasing the search radius will include more searches, but will always display the top 5 restaurants only. The current weather will be displayed under the map as well. Once the list has been generated, users can see all the pertinent information on each restaurant, as well as pictures provided by Google Photo-reference. The number of users will be tracked using Firebase which displays at the top of the page.


Process

  • The user is given a set of instructions at the top of the screen.
  • Users input their city, desired cuisine and radius of search.
    • By default, radius of search is 2.5 miles.

  • Upon search, multiple Google API calls will generate a map with markers, as well as populate a dynamically created card with the top 5 restaurants serving the desired cuisine.
  • A weather API will provide temperature and status of the weather by location.

  • The newly created card will have more detailed information on each restaurant that was populated including:
    • Name
    • Address
    • Photos
    • Price Range
    • Rating
    • Most recent reviewer and the review rating
    • Exerpt of review

Challenges

  • Dynamically creating entire cards with information from the search presented a huge problem within the javascript. Our solution was to create the entire card in HTML, then moving it into the generateCard() function.
  • Originally there was to be a "more info" button that would take the user to a new tab with more detailed information on the restaurant selected. We opted to bypass that due to time constraints.
  • We wanted to utilize Google Firebase in showing users a live counter on how popular a specific restaurant was. However, without a relational database, this became a large challenge that we had to change. We decided on a counter on how many users were using the website concurrently.
  • Trying to work with Bootstrap to make a dynamic carousel was a constant thorn in the site. We spent many hours to finally make a quasi-working version, though it still cuts images that are dynamically created by the generateCard() function.
  • The google maps, geolocation and places API had hard limits on Ajax calls, in addition to being slow to return data. There is a possible solution to speed up the Ajax calls in the future.

Future Developments

  • Speeding up the Ajax calls from Google API's are a large priority.
  • Automatically displaying the top 3 results in the initial card generation.
    • Users can then close any of the results and a new one will append to the bottom.
    • Will also prevent users from accidentally opening the same markers.
  • Converting the integer rating system into dollar signs $-$$$$.
  • Markers will display a modal or infowindow with the name and an option for directions from Google Maps.
  • Using a new database (not Google Firebase) that is relational so we can save user data and allow "favoriting" and "liking" restaurants. This will allow users to remember what their favorite restaurants are and see how popular searched restaurants are.
  • Connecting users with more information on a restaurant via another API, may it be tripadvisor, yelp, or expedia.
  • Expand the application from the food theme, to other themes; i.e. adventure activities and accommodations.

Techonologies

API's

CDN Used

Applications

Database

ruta-foodie's People

Contributors

ivantellezm avatar laethaka avatar maria-otero avatar mosjoandy 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.