It's a search tool for people who want to stop for food along a specified route
An instance of this application can be viewed at: https://bitebybite.herokuapp.com/
- Node
- Express
- Jade
- Bootstrap
- jQuery (for Bootstrap only)
- Google Maps JavaScript API
- Google Places API (JavaScript Library)
- Node-Yelp API
- A user can select an origin and destination, using autocomplete from the Google Places API (JavaScript Library). A field is also provided to choose a Yelp search term.
- A user can see a map with a suggested route from their selected origin to their selected destination.
- A user can see a list of Yelp results near the route described above. This list is also populated as markers on the map described above. (Results courtesy of the Node-Yelp API)
- Hovering over a marker displays the Yelp result name and it's Yelp rating.
- A user can click on a marker or result in the list to view a result in more detail.
- When viewing a result in detail, a map is generated showing that result set as a waypoint in the route between the origin and destination. In addition, step-by-step directions are provided via the Google Maps JavaScript API. There is also an external link to the result's Yelp page.
1. Google Maps API Key
index.jade(orindex.htmlif you are skipping jade conversion) holds your Google Maps API Key.- You can get Google Maps API Keys by clicking
Get a Keyat: https://developers.google.com/maps/documentation/javascript/
script(type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR-GOOGLE-MAPS-API-KEY-HERE&libraries=places,geometry")
2. Yelp API Key
yelp.jsholds your Yelp API Key.- You can get Yelp API Keys at: https://www.yelp.com/developers/v3/manage_app
var apiKey = "YOUR_API_KEY_HERE";
3. Install Dependencies
- In your terminal window, run
npm installto install dependencies
4. Start Server
- Run
node app.jsto start!
5. Using the App
- Navigate to
http://localhost:1337in your web browser - Enter an origin and destination, selecting options from the dropdown list
- Enter a type of food, business, or other yelp search term
- Click the
Search Along Your Route Button - View your results
- View a selection as a waypoint in your route by clicking on the result title or marker

