Giter Club home page Giter Club logo

trucking-around's Introduction

Trucking-Around - Galvanize Q1 Project

Trucking Around is deployed: http://truckingaround.surge.sh/

Rather than searching through twitter or facebook for updates on trucks, Trucking Around lets users search by location in SF using distance and day of the week filters. The search returns the trucks on the map as well as a side panel where users can get more information about the trucks, add and remove favorites, as well as get directions to the truck.

Trucking Around uses the Google Maps API and SF Open Data (for Food Trucks). Trucking Around uses 'fetch' to get the geocoded data from Google Maps followed by chained .then() methods to a 'fetch' to get the data from SF Open Data with a day of the week endpoint. The data then passes through a distance filter to return the trucks within the given distance. To create favorites Trucking Around takes advantage of localStorage to store the favorites in an array. localStorage is also used for finding directions. The recently searched address gets saved into storage and when the directions button is clicked the truck address is also saved to localStorage. The data is then passed into the google map directions. Trucking Around uses a polyfill for 'fetch' so it works on all browsers even where 'fetch' is not supported natively.

Getting Started

  1. Fork and Clone this repo.
  2. Register for Google Maps API Keys.
  3. Create an apikeys.js file. The file should look like this:
const apiKey = xxxxx
  1. open index.html to run locally.
  2. Find something good to eat in San Francisco!

trucking-around's People

Contributors

danielmarcgardner avatar

Watchers

 avatar

Forkers

uppal101

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.